diff --git a/src/components/Content.vue b/src/components/Content.vue index 0648058..556faeb 100644 --- a/src/components/Content.vue +++ b/src/components/Content.vue @@ -9,17 +9,20 @@ circle type="primary" :disabled="disabled" + size="small" @click="handleTypeChange" > {{ type === 'local' ? 'L' : 'S' }} - 添加 - 刷新 + + 添加 + + 刷新 确定删除全部? @@ -31,22 +34,23 @@ :disabled="disabled" @update:file-list="handleImport" > - 导入 + 导入 - 导出 + 导出 - +
@@ -56,18 +60,7 @@
- +
@@ -103,6 +96,7 @@ return ( { const id = await getTabId(); if (id) { @@ -127,6 +121,7 @@ return ( { const id = await getTabId(); if (id) { diff --git a/vite.config.mts b/vite.config.mts index 17f8822..40244b6 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -17,6 +17,11 @@ import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'; export default defineConfig({ server: { host: true, + strictPort: true, + port: 5173, + hmr: { + clientPort: 5173, + }, }, plugins: [ vue(),