mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-12-29 10:56:04 +08:00
v3.28.0 【优化】优化 Long、BigInteger、BigDecimal 的 JSON 序列化【优化】个人中心样式【优化】Spin加载
This commit is contained in:
@@ -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",
|
||||
"diff": "5.2.0",
|
||||
"diff2html": "3.4.47",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||||
*/
|
||||
import { defineStore } from 'pinia';
|
||||
import { smartSentry } from '/@/lib/smart-sentry.js';
|
||||
|
||||
export const useSpinStore = defineStore({
|
||||
id: 'spin',
|
||||
@@ -18,13 +19,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) {
|
||||
smartSentry.captureError('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) {
|
||||
smartSentry.captureError('Spin hide操作失败:', error);
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -234,12 +234,21 @@
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.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;
|
||||
|
||||
@@ -54,11 +54,11 @@
|
||||
</a-col>
|
||||
<!--更新日志-->
|
||||
<a-col :span="24">
|
||||
<ToBeDoneCard />
|
||||
<ChangelogCard />
|
||||
</a-col>
|
||||
<!--待办、已办-->
|
||||
<a-col :span="24">
|
||||
<ChangelogCard />
|
||||
<ToBeDoneCard />
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-col>
|
||||
|
||||
Reference in New Issue
Block a user