页面跳转添加loading,添加全局loading
This commit is contained in:
@@ -13,10 +13,18 @@ export interface RootState{
|
||||
|
||||
export default createStore<RootState>({
|
||||
state: {
|
||||
loading: false,
|
||||
view_loading: false,
|
||||
},
|
||||
getters: {
|
||||
},
|
||||
mutations: {
|
||||
set_loading(state, v){
|
||||
state.loading = v;
|
||||
},
|
||||
set_view_loading(state, v){
|
||||
state.view_loading = v;
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user