feat: pinia结合mock实现按分类和标题搜索工具,布局和样式调整

This commit is contained in:
taoran
2023-11-29 18:32:18 +08:00
parent 33301ff6e1
commit a3f5cf6f2d
34 changed files with 561 additions and 327 deletions
+1 -7
View File
@@ -7,7 +7,6 @@ import path from 'path'
// https://vitejs.dev/config/
export default defineConfig(({command, mode}) => {
let env = loadEnv(mode, process.cwd())
console.log('0-0-0-')
return {
plugins: [
vue(),
@@ -29,13 +28,8 @@ export default defineConfig(({command, mode}) => {
},
server: {
proxy: {
// [env.VITE_APP_BASE_API]: {
// target: env.VITE_SERVE,
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, '')
// }
'/api': {
target: 'https://searchplugin.csdn.net',
target: 'https://searchplugin.csdn.net', //ip查询
changeOrigin: true,
pathRewrite: {
'^/api': ''