修改ai请求地址

This commit is contained in:
2026-09-01 11:17:41 +08:00
parent d2d90f1c6f
commit 5c459b29e1
2 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -57,10 +57,10 @@ export function createAiServiceConfig(env: Env.ImportMeta) {
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
}
if(env.DEV){
aiUrl = 'https://mocaiapi.djxinxi.net/proxy-ai';
aiUrl = 'https://mocaiapi.djxinxi.net';
}else{
// url = window.location.origin;
aiUrl = 'https://mocaiapi.djxinxi.net/proxy-ai';
aiUrl = 'https://mocaiapi.djxinxi.net';
}
const httpConfig: App.Service.SimpleServiceConfig = {
baseURL: aiUrl,
+13 -10
View File
@@ -43,16 +43,7 @@ const form = ref<ApplyForm>({
name: "", dept: "", mainChanges: [""], related: "", purposes: [], effect: "",
type: "", level: "", duration: "", urgent: false, date: null, restoreDate: null,
});
const tab = ref<string>("pre");
const TABS = [
{ id: "pre", name: "变更预识别", icon: 'lucide:sparkles' },
{ id: "form", name: "变更申请表", icon: 'akar-icons:file' },
{ id: "risk", name: "风险分析记录表", icon: 'proicons:alert-triangle' },
{ id: "train", name: "变更培训内容", icon: 'lucide:graduation-cap' },
{ id: "pssr", name: "PSSR 检查内容", icon: 'tabler:clipboard-check' },
{ id: "accept", name: "验收评价", icon: 'material-symbols:check-circle-outline' },
{ id: "close", name: "变更关闭确认表", icon: 'quill:folder-open' },
];
const confirmed = ref<Record<string, boolean>>({});
const blockedTabs = ref<string[]>([]);
@@ -695,6 +686,18 @@ const onBack = () => {
}
// ---------- tab 切换 ----------
const tab = ref<string>("pre");
const TABS = [
{ id: "pre", name: "变更预识别", icon: 'lucide:sparkles' },
{ id: "form", name: "变更申请表", icon: 'akar-icons:file' },
{ id: "risk", name: "风险分析记录表", icon: 'proicons:alert-triangle' },
{ id: "train", name: "变更培训内容", icon: 'lucide:graduation-cap' },
{ id: "pssr", name: "PSSR 检查内容", icon: 'tabler:clipboard-check' },
{ id: "accept", name: "验收评价", icon: 'material-symbols:check-circle-outline' },
{ id: "close", name: "变更关闭确认表", icon: 'quill:folder-open' },
];
// 当前id
const currentId = ref<number>(0);
// tab 切换
const tabChange = (id: string) => {