mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-06-02 03:55:59 +00:00
v3.9.0【优化】typescript版本;【优化】App端消息;【优化】弹出层z-index;
This commit is contained in:
30
smart-admin-web-javascript/src/store/modules/system/spin.js
Normal file
30
smart-admin-web-javascript/src/store/modules/system/spin.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* loading
|
||||
*
|
||||
* @Author: 1024创新实验室-主任:卓大
|
||||
* @Date: 2022-09-06 20:54:50
|
||||
* @Wechat: zhuda1024
|
||||
* @Email: lab1024@163.com
|
||||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||||
*/
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useSpinStore = defineStore({
|
||||
id: 'spin',
|
||||
state: () => ({
|
||||
loading: false,
|
||||
}),
|
||||
|
||||
actions: {
|
||||
hide() {
|
||||
this.loading = false;
|
||||
let spins = document.querySelector('.ant-spin-nested-loading');
|
||||
spins.style.zIndex = 999;
|
||||
},
|
||||
show() {
|
||||
this.loading = true;
|
||||
let spins = document.querySelector('.ant-spin-nested-loading');
|
||||
spins.style.zIndex = 1001;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user