添加ai请求地址
This commit is contained in:
@@ -695,6 +695,19 @@ const onBack = () => {
|
||||
}
|
||||
|
||||
|
||||
const currentId = ref<number>(0);
|
||||
// tab 切换
|
||||
const tabChange = (id: string) => {
|
||||
if(form.value.name.trim() === '') {
|
||||
return window.$message?.warning('请先填写变更名称');
|
||||
}
|
||||
if(desc.value.trim() === '') {
|
||||
return window.$message?.warning('请先填写变更内容描述');
|
||||
}
|
||||
tab.value = id;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -719,7 +732,7 @@ const onBack = () => {
|
||||
<NInput value="MOC-2026-R01-0041" disabled class="!w-44" />
|
||||
</div>
|
||||
<div class="flex items-center gap-1 overflow-x-auto px-3 pt-2">
|
||||
<div v-for="t in TABS" :key="t.id" @click="tab = t.id"
|
||||
<div v-for="t in TABS" :key="t.id" @click="tabChange(t.id)"
|
||||
class="flex items-center gap-1.5 whitespace-nowrap px-3 py-2 text-sm transition cursor-pointer border hover:bg-white/60 rounded-t-lg"
|
||||
:class="tab === t.id ? 'border-b-transparent border-[var(--border-color)] bg-white text-[var(--active-color)]':'border-transparent text-slate-500'"
|
||||
:style="{
|
||||
|
||||
Reference in New Issue
Block a user