wh 2 年 前
コミット
31d6ebd8dd
1 ファイル変更4 行追加3 行削除
  1. 4 3
      App.vue

+ 4 - 3
App.vue

@@ -11,17 +11,18 @@
 		methods:{
 			getDictAll() {
 			  Api.getDictList().then((res) => {
-				  console.log(res)
-			    window.SITE_CONFIG["dictList"] = res.data;
+				  console.log(res.data)
+			    window.SITE_CONFIG["dictList"] = res.data.data;
 			  });
 			},
 		},
 		onLaunch: function() {
 			// 获取字典列表, 添加并全局变量保存
-			this.getDictAll();
 		},
 		onShow: function() {
 			console.log('App Show')
+			this.getDictAll();
+			
 		},
 		onHide: function() {
 			console.log('App Hide')