Showing
4 changed files
with
8 additions
and
8 deletions
| ... | @@ -50,9 +50,9 @@ | ... | @@ -50,9 +50,9 @@ |
| 50 | import { ref, reactive, onMounted } from 'vue' | 50 | import { ref, reactive, onMounted } from 'vue' |
| 51 | import { useRoute, useRouter } from 'vue-router' | 51 | import { useRoute, useRouter } from 'vue-router' |
| 52 | 52 | ||
| 53 | -import { Cookies, _, axios, mainStore, Toast, useTitle } from '@/utils/generatePackage.js' | 53 | +import { Cookies, _, axios, mainStore, Toast, useTitle } from '@/utils/generatePackage' |
| 54 | -import { no_image, icon_avatar } from '@/utils/generateIcons.js' | 54 | +import { no_image, icon_avatar } from '@/utils/generateIcons' |
| 55 | -import { MyButton, ShortcutFixed, BookCard } from '@/utils/generateModules.js' | 55 | +import { MyButton, ShortcutFixed, BookCard } from '@/utils/generateModules' |
| 56 | 56 | ||
| 57 | import { useBookList } from '@/composables'; | 57 | import { useBookList } from '@/composables'; |
| 58 | 58 | ... | ... |
| ... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
| 12 | <script setup> | 12 | <script setup> |
| 13 | import { mainStore } from '@/store' | 13 | import { mainStore } from '@/store' |
| 14 | 14 | ||
| 15 | -import RightSideList from '@/components/RightSideList/index.vue' | 15 | +import RightSideList from '@/components/RightSideList/index' |
| 16 | 16 | ||
| 17 | import { useRouter } from 'vue-router' | 17 | import { useRouter } from 'vue-router' |
| 18 | 18 | ... | ... |
| ... | @@ -6,8 +6,8 @@ | ... | @@ -6,8 +6,8 @@ |
| 6 | </template> | 6 | </template> |
| 7 | 7 | ||
| 8 | <script setup> | 8 | <script setup> |
| 9 | -import DonateCert from '@/components/DonateCert/index.vue' | 9 | +import DonateCert from '@/components/DonateCert/index' |
| 10 | -import ShortcutFixed from '@/components/ShortcutFixed/index.vue' | 10 | +import ShortcutFixed from '@/components/ShortcutFixed/index' |
| 11 | 11 | ||
| 12 | import { ref, reactive, onMounted } from 'vue' | 12 | import { ref, reactive, onMounted } from 'vue' |
| 13 | import { useRoute, useRouter } from 'vue-router' | 13 | import { useRoute, useRouter } from 'vue-router' | ... | ... |
| ... | @@ -45,7 +45,7 @@ export default ({ command, mode }) => { | ... | @@ -45,7 +45,7 @@ export default ({ command, mode }) => { |
| 45 | // dedupe: [''], // 如果你在你的应用程序中有相同依赖的副本(比如 monorepos),使用这个选项来强制 Vite 总是将列出的依赖关系解析到相同的副本(从项目根目录)。 | 45 | // dedupe: [''], // 如果你在你的应用程序中有相同依赖的副本(比如 monorepos),使用这个选项来强制 Vite 总是将列出的依赖关系解析到相同的副本(从项目根目录)。 |
| 46 | // conditions: [''], // 在解析包的 情景导出 时允许的附加条件。 | 46 | // conditions: [''], // 在解析包的 情景导出 时允许的附加条件。 |
| 47 | // mainFields: [''], // package.json 中,在解析包的入口点时尝试的字段列表。注意,这比从 exports 字段解析的情景导出优先级低:如果一个入口点从 exports 成功解析,主字段将被忽略。 | 47 | // mainFields: [''], // package.json 中,在解析包的入口点时尝试的字段列表。注意,这比从 exports 字段解析的情景导出优先级低:如果一个入口点从 exports 成功解析,主字段将被忽略。 |
| 48 | - // extensions: [''], // 导入时想要省略的扩展名列表。注意,不 建议忽略自定义导入类型的扩展名(例如:.vue),因为它会干扰 IDE 和类型支持。 | 48 | + extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'], // 导入时想要省略的扩展名列表。注意,不 建议忽略自定义导入类型的扩展名(例如:.vue),因为它会干扰 IDE 和类型支持。 |
| 49 | }, | 49 | }, |
| 50 | css: { | 50 | css: { |
| 51 | modules: '', // 配置 CSS modules 的行为。选项将被传递给 postcss-modules。 | 51 | modules: '', // 配置 CSS modules 的行为。选项将被传递给 postcss-modules。 |
| ... | @@ -97,7 +97,7 @@ export default ({ command, mode }) => { | ... | @@ -97,7 +97,7 @@ export default ({ command, mode }) => { |
| 97 | }, | 97 | }, |
| 98 | input: { // 多页面应用模式 | 98 | input: { // 多页面应用模式 |
| 99 | main: path.resolve(__dirname, 'index.html'), | 99 | main: path.resolve(__dirname, 'index.html'), |
| 100 | - // main1: path.resolve(__dirname, 'index1.html'), // router需要配置入口 | 100 | + // main1: path.resolve(__dirname, 'index1.html'), // router需要配置入口, 没有找到更好方案,同级新增类似文件可以达到效果 |
| 101 | } | 101 | } |
| 102 | }, | 102 | }, |
| 103 | }, | 103 | }, | ... | ... |
-
Please register or login to post a comment