guhongwei 2 anos atrás
pai
commit
7491b60703
1 arquivos alterados com 10 adições e 1 exclusões
  1. 10 1
      pages/index/index.vue

+ 10 - 1
pages/index/index.vue

@@ -17,7 +17,16 @@
 		},
 		onLoad: async function() {
 			const that = this;
-			await that.searchConfig();
+			if(process.env.NODE_ENV === 'development'){
+			  uni.showToast({
+			  	title: '开发环境'
+			  });
+			}else{
+				uni.showToast({
+					title: '开发环境'
+				});
+				await that.searchConfig();
+			}
 		},
 		methods: {
 			// 查询基本设置