mirror of
https://github.com/acepanel/panel.git
synced 2026-02-03 23:27:22 +08:00
fix: build
This commit is contained in:
@@ -8,7 +8,6 @@ export function setupHtmlPlugin(viteEnv: ViteEnv) {
|
||||
data: {
|
||||
title: VITE_APP_TITLE
|
||||
}
|
||||
},
|
||||
viteNext: true
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,15 +3,8 @@ import unocss from '@unocss/eslint-config/flat'
|
||||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
|
||||
import vueTsEslintConfig from '@vue/eslint-config-typescript'
|
||||
import pluginVue from 'eslint-plugin-vue'
|
||||
import path from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname
|
||||
})
|
||||
const compat = new FlatCompat()
|
||||
|
||||
export default [
|
||||
...pluginVue.configs['flat/essential'],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const proxyConfigMappings: Record<ProxyType, ProxyConfig> = {
|
||||
const proxyConfigMappings: Record<ProxyType, ProxyConfig[]> = {
|
||||
dev: [
|
||||
{
|
||||
prefix: '/api/ws',
|
||||
|
||||
6
web/types/env.d.ts
vendored
6
web/types/env.d.ts
vendored
@@ -16,5 +16,9 @@ interface ProxyConfig {
|
||||
/** 代理目标地址,后端真实接口地址 */
|
||||
target: string
|
||||
/** 是否校验https证书 */
|
||||
secure: boolean
|
||||
secure?: boolean
|
||||
/** 是否修改请求头中的host */
|
||||
changeOrigin?: boolean
|
||||
/** 是否代理websocket */
|
||||
ws?: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user