mirror of
https://github.com/1024-lab/smart-admin.git
synced 2025-09-02 02:44:58 +00:00
Compare commits
6 Commits
4b34c9960c
...
ad65db0198
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ad65db0198 | ||
![]() |
57454d095f | ||
![]() |
4e9c4828a8 | ||
![]() |
76a24e2381 | ||
![]() |
4cc930bc6d | ||
![]() |
7cb03092d6 |
@@ -18,13 +18,27 @@ export const useSpinStore = defineStore({
|
||||
actions: {
|
||||
hide() {
|
||||
this.loading = false;
|
||||
let spins = document.querySelector('.ant-spin-nested-loading');
|
||||
spins.style.zIndex = 999;
|
||||
// 安全的DOM操作,避免null引用错误
|
||||
try {
|
||||
const spins = document.querySelector('.ant-spin-nested-loading');
|
||||
if (spins) {
|
||||
spins.style.zIndex = '999';
|
||||
}
|
||||
} catch (error) {
|
||||
console.warn('Spin hide操作失败:', error);
|
||||
}
|
||||
},
|
||||
show() {
|
||||
this.loading = true;
|
||||
let spins = document.querySelector('.ant-spin-nested-loading');
|
||||
spins.style.zIndex = 1001;
|
||||
// 安全的DOM操作,避免null引用错误
|
||||
try {
|
||||
const spins = document.querySelector('.ant-spin-nested-loading');
|
||||
if (spins) {
|
||||
spins.style.zIndex = '1001';
|
||||
}
|
||||
} catch (error) {
|
||||
console.warn('Spin show操作失败:', error);
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
@@ -233,13 +233,21 @@
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.center-container {
|
||||
.center-container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.header-title {
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.center-form-area {
|
||||
margin-top: 20px;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
|
||||
.avatar-container {
|
||||
position: relative;
|
||||
|
@@ -24,7 +24,7 @@
|
||||
"axios": "1.6.8",
|
||||
"clipboard": "2.0.11",
|
||||
"crypto-js": "4.1.1",
|
||||
"dayjs": "1.10.5",
|
||||
"dayjs": "1.11.13",
|
||||
"decimal.js": "10.3.1",
|
||||
"default-passive-events": "^2.0.0",
|
||||
"diff": "5.2.0",
|
||||
|
Reference in New Issue
Block a user