Kaynağa Gözat

登录页面的logo图片防缓存

刘洋 8 ay önce
ebeveyn
işleme
b95dec4989
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      src/features/UserLogin/UserLogin.vue

+ 3 - 1
src/features/UserLogin/UserLogin.vue

@@ -150,7 +150,9 @@ onMounted(async () => {
 
 const QECSConfig = $computed(() => store.QECSConfig);
 
-const logoPath = $computed(() => QECSConfig.LOGO_FILE_URL || "");
+const logoPath = $computed(() =>
+  QECSConfig.LOGO_FILE_URL ? QECSConfig.LOGO_FILE_URL + "?v=" + Date.now() : ""
+);
 const backgroundUrl = $computed(
   () =>
     `url(${