Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-20 11:41:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
66c3692c6c85aeaced64a7877dc55a7c0db1957b
66c3692c
1 parent
e26ed813
vite配置后缀省略
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
src/views/client/chooseBook.vue
src/views/client/chooseSchool.vue
src/views/client/donateCertificate.vue
vite.config.js
src/views/client/chooseBook.vue
View file @
66c3692
...
...
@@ -50,9 +50,9 @@
import { ref, reactive, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { Cookies, _, axios, mainStore, Toast, useTitle } from '@/utils/generatePackage
.js
'
import { no_image, icon_avatar } from '@/utils/generateIcons
.js
'
import { MyButton, ShortcutFixed, BookCard } from '@/utils/generateModules
.js
'
import { Cookies, _, axios, mainStore, Toast, useTitle } from '@/utils/generatePackage'
import { no_image, icon_avatar } from '@/utils/generateIcons'
import { MyButton, ShortcutFixed, BookCard } from '@/utils/generateModules'
import { useBookList } from '@/composables';
...
...
src/views/client/chooseSchool.vue
View file @
66c3692
...
...
@@ -12,7 +12,7 @@
<script setup>
import { mainStore } from '@/store'
import RightSideList from '@/components/RightSideList/index
.vue
'
import RightSideList from '@/components/RightSideList/index'
import { useRouter } from 'vue-router'
...
...
src/views/client/donateCertificate.vue
View file @
66c3692
...
...
@@ -6,8 +6,8 @@
</template>
<script setup>
import DonateCert from '@/components/DonateCert/index
.vue
'
import ShortcutFixed from '@/components/ShortcutFixed/index
.vue
'
import DonateCert from '@/components/DonateCert/index'
import ShortcutFixed from '@/components/ShortcutFixed/index'
import { ref, reactive, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
...
...
vite.config.js
View file @
66c3692
...
...
@@ -45,7 +45,7 @@ export default ({ command, mode }) => {
// dedupe: [''], // 如果你在你的应用程序中有相同依赖的副本(比如 monorepos),使用这个选项来强制 Vite 总是将列出的依赖关系解析到相同的副本(从项目根目录)。
// conditions: [''], // 在解析包的 情景导出 时允许的附加条件。
// mainFields: [''], // package.json 中,在解析包的入口点时尝试的字段列表。注意,这比从 exports 字段解析的情景导出优先级低:如果一个入口点从 exports 成功解析,主字段将被忽略。
// extensions: ['
'], // 导入时想要省略的扩展名列表。注意,不 建议忽略自定义导入类型的扩展名(例如:.vue),因为它会干扰 IDE 和类型支持。
extensions
:
[
'.mjs'
,
'.js'
,
'.ts'
,
'.jsx'
,
'.tsx'
,
'.json'
,
'.vue
'
],
// 导入时想要省略的扩展名列表。注意,不 建议忽略自定义导入类型的扩展名(例如:.vue),因为它会干扰 IDE 和类型支持。
},
css
:
{
modules
:
''
,
// 配置 CSS modules 的行为。选项将被传递给 postcss-modules。
...
...
@@ -97,7 +97,7 @@ export default ({ command, mode }) => {
},
input
:
{
// 多页面应用模式
main
:
path
.
resolve
(
__dirname
,
'index.html'
),
// main1: path.resolve(__dirname, 'index1.html'), // router需要配置入口
// main1: path.resolve(__dirname, 'index1.html'), // router需要配置入口
, 没有找到更好方案,同级新增类似文件可以达到效果
}
},
},
...
...
Please
register
or
login
to post a comment