shish 3 ani în urmă
părinte
comite
80bbe2bf42
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      ghsApp/src/admin/home/workbench.vue

+ 2 - 4
ghsApp/src/admin/home/workbench.vue

@@ -224,12 +224,10 @@ export default {
 		uni.stopPullDownRefresh();
 		uni.stopPullDownRefresh();
 	},
 	},
 	onShow() {
 	onShow() {
-		this.getShopInfo()
-
+		this.getShopTitle()
 		if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentGhsShopId > 0){
 		if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentGhsShopId > 0){
 			this.loginStyle  = 1
 			this.loginStyle  = 1
 		}
 		}
-
 	},
 	},
 	methods: {
 	methods: {
 		...mapActions(['setUserShopAll']),
 		...mapActions(['setUserShopAll']),
@@ -251,7 +249,7 @@ export default {
 				that.$msg("请用微信打开")
 				that.$msg("请用微信打开")
 			// #endif
 			// #endif
 		},
 		},
-		getShopInfo(){
+		getShopTitle(){
 			getShopInfo().then(res => {
 			getShopInfo().then(res => {
 				if(res.name){
 				if(res.name){
 					uni.setNavigationBarTitle({ title: res.name })
 					uni.setNavigationBarTitle({ title: res.name })