guhongwei 2 年之前
父節點
當前提交
7491b60703
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      pages/index/index.vue

+ 10 - 1
pages/index/index.vue

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