接口初始化 第一版

This commit is contained in:
yuping
2022-11-16 01:28:42 +08:00
parent c2f02a33e5
commit f9ae1c0027
27 changed files with 13054 additions and 550 deletions

28
vite.config.js Normal file
View File

@@ -0,0 +1,28 @@
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import legacy from '@vitejs/plugin-legacy'
import {viteMockServe} from 'vite-plugin-mock'
const path = require('path')
export default defineConfig(({command}) =>
({
plugins: [
vue(),
legacy({
targets: ['chrome 52', 'defaults', 'not IE 11']
}),
viteMockServe({
mockPath: './src/mock/mocks',
injectCode: `
console.log(111111111)
`,
})
],
resolve: {
alias: [
{find: '@', replacement: path.resolve(__dirname, 'src')}
]
}
})
)