2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-03 23:27:22 +08:00

fix: build

This commit is contained in:
耗子
2024-11-26 02:27:24 +08:00
parent 146c9aadbd
commit 2208ff1c29
4 changed files with 8 additions and 12 deletions

View File

@@ -8,7 +8,6 @@ export function setupHtmlPlugin(viteEnv: ViteEnv) {
data: {
title: VITE_APP_TITLE
}
},
viteNext: true
}
})
}

View File

@@ -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'],

View File

@@ -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
View File

@@ -16,5 +16,9 @@ interface ProxyConfig {
/** 代理目标地址,后端真实接口地址 */
target: string
/** 是否校验https证书 */
secure: boolean
secure?: boolean
/** 是否修改请求头中的host */
changeOrigin?: boolean
/** 是否代理websocket */
ws?: boolean
}