diff --git a/index.html b/index.html
index 11235b2..b6d0bc8 100644
--- a/index.html
+++ b/index.html
@@ -31,31 +31,26 @@
}
.loader {
- position: relative;
- width: 40px;
- aspect-ratio: 0.577;
- overflow: hidden;
- clip-path: polygon(0 0, 100% 100%, 0 100%, 100% 0);
- animation: l19 2s infinite linear;
- }
+ --d: 22px;
- .loader::before {
- position: absolute;
- inset: -150%;
- content: "";
- background: repeating-conic-gradient(
- from 30deg,
- #ffabab 0 60deg,
- #abe4ff 0 120deg,
- #ff7373 0 180deg
- );
- animation: inherit;
- animation-direction: reverse;
+ width: 4px;
+ height: 4px;
+ color: #25b09b;
+ border-radius: 50%;
+ box-shadow:
+ calc(1 * var(--d)) calc(0 * var(--d)) 0 0,
+ calc(0.707 * var(--d)) calc(0.707 * var(--d)) 0 1px,
+ calc(0 * var(--d)) calc(1 * var(--d)) 0 2px,
+ calc(-0.707 * var(--d)) calc(0.707 * var(--d)) 0 3px,
+ calc(-1 * var(--d)) calc(0 * var(--d)) 0 4px,
+ calc(-0.707 * var(--d)) calc(-0.707 * var(--d)) 0 5px,
+ calc(0 * var(--d)) calc(-1 * var(--d)) 0 6px;
+ animation: l27 1s infinite steps(8);
}
- @keyframes l19 {
+ @keyframes l27 {
100% {
- transform: rotate(360deg);
+ transform: rotate(1turn);
}
}
diff --git a/src/plugins/permission.ts b/src/plugins/permission.ts
index 9fbce9f..1c671a3 100644
--- a/src/plugins/permission.ts
+++ b/src/plugins/permission.ts
@@ -16,6 +16,16 @@ export function setupPermission() {
next({ path: "/" });
NProgress.done();
} else {
+ //处理三级目录页面无法缓存BUG
+ if (to.matched && to.matched.length > 2) {
+ for (let i = 0; i < to.matched.length; i++) {
+ const element = to.matched[i];
+ if (element.name === "Operate") {
+ to.matched.splice(i, 1);
+ }
+ }
+ }
+
const userStore = useUserStore();
const hasRoles =
userStore.user.roles && userStore.user.roles.length > 0;
diff --git a/src/views/family/operate/index.vue b/src/views/family/operate/index.vue
index 3e574e9..52cb423 100644
--- a/src/views/family/operate/index.vue
+++ b/src/views/family/operate/index.vue
@@ -15,6 +15,9 @@