From 13527e561d5e89d4410827bd0ac0bae491a965cf Mon Sep 17 00:00:00 2001
From: liuzewei <909920273@qq.com>
Date: Fri, 8 Oct 2021 15:11:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=9F=B3=E9=A2=91=E7=BD=91?=
=?UTF-8?q?=E6=98=93=E4=BA=91=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sce/sceInfo/index.vue | 47 +++++++++++++++++++++++++++------
vue.config.js | 3 ++-
2 files changed, 41 insertions(+), 9 deletions(-)
diff --git a/src/views/sce/sceInfo/index.vue b/src/views/sce/sceInfo/index.vue
index 2bbc888..c56daec 100644
--- a/src/views/sce/sceInfo/index.vue
+++ b/src/views/sce/sceInfo/index.vue
@@ -467,7 +467,7 @@
-
+
{
+ this.ruleForm.radioMusic.splice(index, 1);
+ this.tongbuliuchen();
+ this.$message({
+ type: "success",
+ message: "删除成功!"
+ });
+ })
+ .catch(() => {
+ this.$message({
+ type: "error",
+ message: "已取消删除"
+ });
+ });
},
DelVideo(index) {
this.ruleForm.radioVideo.splice(index, 1);
@@ -1949,7 +1972,15 @@ export default {
this.$refs.img.data = this.ruleForm.radioImg;
}
},
+ //新增网易云新增按钮
handleAddMusic() {
+ let list = this.ruleForm.radioMusic
+ if(list.length!=0){
+ if(list[list.length-1].title==''||list[list.length-1].url==''||list[list.length-1].processId==''){
+ this.$message.warning('一次只能添加一条')
+ return false;
+ }
+ }
this.ruleForm.radioMusic.push({
title: "",
url: "",
diff --git a/vue.config.js b/vue.config.js
index 9912217..e40a7c1 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -37,7 +37,8 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://127.0.0.1:8501/`,
- target: `http://47.104.146.186:8501/`,
+ // target: `http://47.104.146.186:8501/`,
+ target: `http://192.168.3.23:8501/`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''