add:增加全局loading
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<a-config-provider :locale="locale">
|
||||
<router-view />
|
||||
<a-spin :spinning="state.isLoading" size="large">
|
||||
<router-view />
|
||||
</a-spin>
|
||||
</a-config-provider>
|
||||
</template>
|
||||
|
||||
@@ -10,6 +12,7 @@
|
||||
import { useRouter } from 'vue-router';
|
||||
import Cookies from 'js-cookie';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { items } from '/@/store/item';
|
||||
export default defineComponent({
|
||||
name: 'App',
|
||||
|
||||
@@ -37,6 +40,8 @@
|
||||
return {
|
||||
cachedViews,
|
||||
locale: zhCN,
|
||||
// 获得全局变量
|
||||
state: items(),
|
||||
};
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user