Ver Fonte

登录页面的logo图片防缓存

刘洋 há 8 meses atrás
pai
commit
b95dec4989
1 ficheiros alterados com 3 adições e 1 exclusões
  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(${