diff --git a/main.js b/main.js index 906cb8a..b2cf90e 100644 --- a/main.js +++ b/main.js @@ -116,7 +116,7 @@ export function createApp () { }) }) }, - getAgencyInfo () { + getAgencyInfo (callback=()=>{}) { let that = this G.Get("/yishoudan/agency/getInfo", {}, (res) => { let obj = { ...res.agency, ...res.weixinConfig } @@ -130,6 +130,7 @@ export function createApp () { uni.setStorageSync("pgy-agency-id", res.agency.id); uni.setStorageSync("ai-name", res.agency.aiRobotName); uni.setStorageSync("ai-logo", res.agency.aiLogo); + callback(); // app.$forceUpdate(); }); }, diff --git a/root/merchantManagement/dynamicNotice.vue b/root/merchantManagement/dynamicNotice.vue index 0eac5ae..35a9708 100644 --- a/root/merchantManagement/dynamicNotice.vue +++ b/root/merchantManagement/dynamicNotice.vue @@ -12,7 +12,7 @@ 公告内容 - + { + uni.switchTab({ + url:'/pages/home/index' + }) + }); },()=>{ that.isSubmit = false; });