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