修改ai请求地址
This commit is contained in:
@@ -57,10 +57,10 @@ export function createAiServiceConfig(env: Env.ImportMeta) {
|
|||||||
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
|
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
|
||||||
}
|
}
|
||||||
if(env.DEV){
|
if(env.DEV){
|
||||||
aiUrl = 'https://mocaiapi.djxinxi.net/proxy-ai';
|
aiUrl = 'https://mocaiapi.djxinxi.net';
|
||||||
}else{
|
}else{
|
||||||
// url = window.location.origin;
|
// url = window.location.origin;
|
||||||
aiUrl = 'https://mocaiapi.djxinxi.net/proxy-ai';
|
aiUrl = 'https://mocaiapi.djxinxi.net';
|
||||||
}
|
}
|
||||||
const httpConfig: App.Service.SimpleServiceConfig = {
|
const httpConfig: App.Service.SimpleServiceConfig = {
|
||||||
baseURL: aiUrl,
|
baseURL: aiUrl,
|
||||||
|
|||||||
@@ -43,16 +43,7 @@ const form = ref<ApplyForm>({
|
|||||||
name: "", dept: "", mainChanges: [""], related: "", purposes: [], effect: "",
|
name: "", dept: "", mainChanges: [""], related: "", purposes: [], effect: "",
|
||||||
type: "", level: "", duration: "", urgent: false, date: null, restoreDate: null,
|
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 confirmed = ref<Record<string, boolean>>({});
|
||||||
const blockedTabs = ref<string[]>([]);
|
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);
|
const currentId = ref<number>(0);
|
||||||
// tab 切换
|
// tab 切换
|
||||||
const tabChange = (id: string) => {
|
const tabChange = (id: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user