From 66471b3c0639ace8ee715b7630b0da60a5bc3632 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 16 五月 2024 18:16:15 +0800 Subject: [PATCH] 学习文件 --- vue.config.js | 4 ++-- src/views/onlineStudy/file.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/onlineStudy/file.vue b/src/views/onlineStudy/file.vue index a393cc3..316fb08 100644 --- a/src/views/onlineStudy/file.vue +++ b/src/views/onlineStudy/file.vue @@ -199,6 +199,7 @@ handlerSubmit() { this.$refs['form'].validate((valid) => { if (valid) { + this.form.contentUrl = this.form.contentUrl[0] if (this.form.id) { OnlineStudyAPI.update(this.form).then(res => { if (res.code === 1) { diff --git a/vue.config.js b/vue.config.js index 96cf641..5268e98 100644 --- a/vue.config.js +++ b/vue.config.js @@ -19,8 +19,8 @@ hotOnly: false, proxy: { '/api': { - target: 'http://192.168.3.87:8085', - // target: 'http://localhost:8085', + // target: 'http://192.168.3.87:8085', + target: 'http://localhost:8085', changeOrigin: true } } -- Gitblit v1.8.0