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