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')