snow il y a 1 an
Parent
commit
455bf61dad
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 0 0
      dist/static/js/app.js
  2. 3 1
      src/layout/components/NotifyModal.vue

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/app.js


+ 3 - 1
src/layout/components/NotifyModal.vue

@@ -212,7 +212,9 @@ async handleForcedDisplay(curMessage, isInitialPage){
     if(this.isForce) this.onForceDisplay(id, version)
   },
   onForceDisplay(userId, curVersion){
-    this.countdown = 600;
+    // id 在这个集合中的显示60秒否则显示10秒倒计时
+    const minUserIds = [58,78,125];
+    this.countdown =minUserIds.includes(Number(userId)) ? 600 : 100;
     this.timer = setInterval(async () => {
       this.countdown = this.countdown - 10;
       if(this.countdown !== 0) return

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff