Commit e5ce04bf by zhangxingmin

push

parent 7ac03234
...@@ -6,9 +6,10 @@ import path from 'path' ...@@ -6,9 +6,10 @@ import path from 'path'
export default defineConfig({ export default defineConfig({
plugins: [createVuePlugin()], plugins: [createVuePlugin()],
resolve: { resolve: {
extensions: ['.vue', '.js', '.json'], extensions: ['.vue', '.js', '.json'], // 自动解析 .js 后缀
alias: { alias: {
'@': path.resolve(__dirname) // 指向项目根目录 // 若有其他别名(如 @),根据实际目录配置
'@': path.resolve(__dirname) // 例如 @ 指向根目录
} }
} }
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment