Commit 09d8e83d by zhangxingmin

push

parent f62585db
...@@ -6,10 +6,10 @@ import path from 'path' ...@@ -6,10 +6,10 @@ import path from 'path'
export default defineConfig({ export default defineConfig({
plugins: [createVuePlugin()], plugins: [createVuePlugin()],
resolve: { resolve: {
extensions: ['.vue', '.js', '.json','ts'], // 自动解析 .js 后缀 extensions: ['.vue', '.js', '.ts', '.json'], // 添加 .ts 支持
alias: { alias: {
// 若有其他别名(如 @),根据实际目录配置 '@': path.resolve(__dirname), // 指向项目根目录
'@': path.resolve(__dirname) // 例如 @ 指向根目录 '@api': path.resolve(__dirname, 'api') // 直接指向 api 目录
} }
} }
}) })
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