mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-08 07:03:31 +08:00
更新 Vite 配置以支持 vuetify/styles 的版本要求,优化共享依赖配置
This commit is contained in:
@@ -125,7 +125,6 @@ async function refreshData() {
|
|||||||
error.value = null
|
error.value = null
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// 模拟数据
|
// 模拟数据
|
||||||
stats.value = {
|
stats.value = {
|
||||||
'电影': Math.floor(Math.random() * 100) + 50,
|
'电影': Math.floor(Math.random() * 100) + 50,
|
||||||
|
|||||||
@@ -13,7 +13,17 @@ export default defineConfig({
|
|||||||
'./Config': './src/components/Config.vue',
|
'./Config': './src/components/Config.vue',
|
||||||
'./Dashboard': './src/components/Dashboard.vue',
|
'./Dashboard': './src/components/Dashboard.vue',
|
||||||
},
|
},
|
||||||
shared: ['vue', 'vuetify'],
|
shared: {
|
||||||
|
vue: {
|
||||||
|
requiredVersion: false,
|
||||||
|
},
|
||||||
|
vuetify: {
|
||||||
|
requiredVersion: false,
|
||||||
|
},
|
||||||
|
'vuetify/styles': {
|
||||||
|
requiredVersion: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
format: 'esm'
|
format: 'esm'
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ export default defineConfig({
|
|||||||
vuetify: {
|
vuetify: {
|
||||||
requiredVersion: false,
|
requiredVersion: false,
|
||||||
},
|
},
|
||||||
|
'vuetify/styles': {
|
||||||
|
requiredVersion: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
|
|||||||
Reference in New Issue
Block a user