- env 样板:OMS_CALLBACK_BASE_URL 改为 https://oms.gztbyc.com(后端/发布两处) - 前端:env.d.ts 示例与 mediaUrl() 注释改为同源说明(生产 /api 不再跨域) - DEPLOY.md:旧域名章节改为「已下线」,说明目录 /www/wwwroot/api.oms.gztbyc.com/ 只是发布目录名、与域名无关;同源章节去掉「保留 CORS 给老域名」的过时说明 - deploy.config.example.cjs:注明 include 路径与域名是否对外服务无关 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
506 B
TypeScript
14 lines
506 B
TypeScript
/// <reference types="vite/client" />
|
||
|
||
/** 环境变量(各环境取值见 .env.development / .env.production) */
|
||
interface ImportMetaEnv {
|
||
/** 后端 API 基础地址,必须带 /api 前缀;生产同源用 /api,直连后端时用 https://<后端域名>/api */
|
||
readonly VITE_API_BASE_URL?: string
|
||
}
|
||
|
||
declare module '*.vue' {
|
||
import type { DefineComponent } from 'vue'
|
||
const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>
|
||
export default component
|
||
}
|