Ver Fonte

更新处理框架缓存

lex há 1 ano atrás
pai
commit
b6e08f23cb
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      src/views/notation/index.tsx
  2. 2 2
      vite.config.ts

+ 1 - 1
src/views/notation/index.tsx

@@ -65,7 +65,7 @@ export default defineComponent({
     });
     return () => (
       <div class={styles.wrap}>
-        <iframe ref={iframeRef} src={data.src}></iframe>
+        <iframe ref={iframeRef} src={data.src} key={Date.now()}></iframe>
 
         <NModal
           v-model:show={previewModal.value}

+ 2 - 2
vite.config.ts

@@ -23,8 +23,8 @@ function resolve(dir: string) {
 }
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
-const proxyUrl = 'https://dev.kt.colexiu.com/';
-// const proxyUrl = 'https://test.lexiaoya.cn';
+// const proxyUrl = 'https://dev.kt.colexiu.com/';
+const proxyUrl = 'https://test.lexiaoya.cn';
 export default defineConfig({
   base: './',
   plugins: [