1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 20:10:22 +08:00

style: lint

This commit is contained in:
zclzone
2024-06-06 18:05:36 +08:00
parent 98f9d5893a
commit a67510fe34
72 changed files with 542 additions and 389 deletions

View File

@@ -6,7 +6,7 @@
* Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
**********************************/
import path from 'path'
import path from 'node:path'
import { defineConfig, loadEnv } from 'vite'
import Vue from '@vitejs/plugin-vue'
import VueDevTools from 'vite-plugin-vue-devtools'
@@ -15,7 +15,7 @@ import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
import removeNoMatch from 'vite-plugin-router-warn'
import { pluginPagePathes, pluginIcons } from './build/plugin-isme'
import { pluginIcons, pluginPagePathes } from './build/plugin-isme'
export default defineConfig(({ mode }) => {
const viteEnv = loadEnv(mode, process.cwd())
@@ -56,7 +56,7 @@ export default defineConfig(({ mode }) => {
'/api': {
target: VITE_PROXY_TARGET,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp('^/api'), ''),
rewrite: path => path.replace(/^\/api/, ''),
secure: false,
configure: (proxy, options) => {
// 配置此项可在响应头中看到请求的真实地址