From 8fc22e5bf34a6c2fced873f3f116a9c44fabd746 Mon Sep 17 00:00:00 2001 From: zxy <353513737@qq.com> Date: Mon, 11 Mar 2024 17:54:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E5=9B=BE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/advertisement/advertisementBody.vue | 9 ++++++--- src/views/manage/advertisement/index.vue | 10 +++++----- vue.config.js | 4 ++-- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/views/manage/advertisement/advertisementBody.vue b/src/views/manage/advertisement/advertisementBody.vue index ca10e73..b6964ff 100644 --- a/src/views/manage/advertisement/advertisementBody.vue +++ b/src/views/manage/advertisement/advertisementBody.vue @@ -2,7 +2,6 @@
{{menuDetail.menuName}}
{ this.data = res.data.data; @@ -347,7 +349,8 @@ export default { bannerInit (){ this.data = [] this.loading = true; - var type = this.envType() + // var type = this.envType() + var type = 1; getCarouselList( type, ).then((res) => { diff --git a/src/views/manage/advertisement/index.vue b/src/views/manage/advertisement/index.vue index 505ead3..793ac0c 100644 --- a/src/views/manage/advertisement/index.vue +++ b/src/views/manage/advertisement/index.vue @@ -65,11 +65,7 @@ { name: '轮播图', select: true - }, - // { - // name: '侧边栏', - // select: true - // }, + } ], menuList: [ @@ -85,6 +81,9 @@ menuDetail: {} } }, + mounted() { + this.$refs.advertisementBody.bannerInit() + }, methods: { titleActive (item) { if(item.select)return @@ -98,6 +97,7 @@ this.menuDetail = JSON.parse(JSON.stringify(item)) if (this.titleList[0].select) { this.$refs.advertisementBody.onLoad() + // this.$refs.advertisementBody.bannerInit() } else if (this.titleList[1].select) { this.$refs.advertisementBody.bannerInit() } diff --git a/vue.config.js b/vue.config.js index 85d0d59..5946086 100644 --- a/vue.config.js +++ b/vue.config.js @@ -24,9 +24,9 @@ module.exports = { proxy: { "/api": { // target: 'http://localhost:8000', // 本地服务接口地址 - // target: "http://39.98.184.58:8000", // 阿里云后台地址 + target: "http://39.98.184.58:8000", // 阿里云后台地址 // target: "http://192.168.3.108:8000", // 本地 - target: 'http://192.168.3.111:8000', + // target: 'http://192.168.3.111:8000', ws: true, changeOrigin: true, pathRewrite: {