From 6867961891b27624ac7294efd23d8f648a3dbd53 Mon Sep 17 00:00:00 2001 From: ywk <317226901@qq.com> Date: Fri, 11 Apr 2025 11:33:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(global):=20=E7=A7=BB=E9=99=A4=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E5=AE=A2=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/noticePopup.vue | 2 +- main.js | 4 ++-- pages/index/index.vue | 8 +------- pages/shareArea/details.vue | 4 ++-- pages/shareArea/haiDetails.vue | 6 +----- pages/specialArea/details.vue | 16 ++-------------- 6 files changed, 9 insertions(+), 31 deletions(-) diff --git a/components/noticePopup.vue b/components/noticePopup.vue index 8bcea8a..49884e5 100644 --- a/components/noticePopup.vue +++ b/components/noticePopup.vue @@ -58,7 +58,7 @@ export default { .then(res => { if (res.code == '200') { let list = JSON.parse(localStorage.getItem('menuList')) - let arr = res.data[0].publishLocation.split(',') + let arr = res.data[0]?.publishLocation.split(',') || [] arr.forEach(items => { if (items == this.publishLocationIndex) { this.noticeFlag = true diff --git a/main.js b/main.js index 1354aee..5eabe91 100644 --- a/main.js +++ b/main.js @@ -23,9 +23,9 @@ Vue.use(Vue2OrgTree) import axios from 'axios'; import { saveAs } from 'file-saver'; window.wx = {} -import floating from '@/components/floating/floating.vue'; + /*底部数据*/ -Vue.component('floating', floating) + Vue.prototype.$store = store Vue.use(uview) Vue.config.productionTip = false diff --git a/pages/index/index.vue b/pages/index/index.vue index cbb94b2..3b31ead 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -37,13 +37,7 @@ --> - - +