Jelajahi Sumber

base 版本

wuheng 1 tahun lalu
induk
melakukan
9f1094c5b1

+ 0 - 1
src/layouts/common/global-content/index.vue

@@ -2,7 +2,6 @@
   <router-view v-slot="{ Component, route }">
     <transition
       :name="theme.pageAnimateMode"
-      mode="out-in"
       :appear="true"
       @before-leave="app.setDisableMainXScroll(true)"
       @after-enter="app.setDisableMainXScroll(false)"

+ 3 - 1
src/store/modules/app/index.ts

@@ -48,12 +48,14 @@ export const useAppStore = defineStore('app-store', {
      * 重载页面
      * @param duration - 重载的延迟时间(ms)
      */
-    async reloadPage(duration = 0) {
+    async reloadPage(duration = 100) {
       this.reloadFlag = false;
       await nextTick();
       if (duration) {
         setTimeout(() => {
+          console.log('b', this.reloadFlag);
           this.reloadFlag = true;
+          console.log('f', this.reloadFlag);
         }, duration);
       } else {
         this.reloadFlag = true;

+ 2 - 0
src/views/management/student/index.vue

@@ -65,7 +65,9 @@ function beforeUpload(data: { file: UploadFileInfo; fileList: UploadFileInfo[] }
   }
   return true;
 }
+console.log('----------------------');
 onMounted(() => {
+  console.log('++++++++++++++++++++++');
   crudExpose.doRefresh();
 });
 </script>