lilei 7 months ago
parent
commit
34059be4a9
2 changed files with 4 additions and 3 deletions
  1. 2 2
      App.vue
  2. 2 1
      pages/storeManage/storeAuth.vue

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	export default {
 		globalData: {
-			baseUrl: 'http://192.168.2.10:9110/saas/clz/', // 本地
-			// baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
+			// baseUrl: 'http://192.168.2.100:9110/saas/clz/', // 本地
+			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},
 		onLaunch: function() {

+ 2 - 1
pages/storeManage/storeAuth.vue

@@ -187,6 +187,7 @@
 			this.$refs.uForm.setRules(this.rules);
 		},
 		onLoad() {
+			const _this = this
 			// 判断是否审核中
 			this.storeApply = this.$store.state.vuex_storeAuthInfo
 			if(this.storeApply){
@@ -200,7 +201,7 @@
 						confirmText: '去登录',
 						showCancel: false,
 						success() {
-							this.$store.dispatch('userLogout');
+							_this.$store.dispatch('userLogout');
 							uni.redirectTo({
 								url: '/pages/login/login'
 							});