Skip to content

Commit 2ef73ca

Browse files
committed
🐛 fix(Vue): 修复服务与命名空间的关系
1 parent d3f1204 commit 2ef73ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/pages/manage/namespace.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
path="namespaceId"
5151
label="命名空间Id"
5252
>
53-
<NInput v-model:value="formData.namespaceId" />
53+
<NInput
54+
v-model:value="formData.namespaceId"
55+
:disabled="formData.mode === 'update'"
56+
/>
5457
</NFormItem>
5558
</NForm>
5659
</template>

src/pages/manage/service/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
type="info"
6363
@click="
6464
methods.createForm({
65+
namespaceId: namespaceStore.current.value.namespaceId || '',
6566
groupName: '',
6667
serviceName: '',
6768
protectThreshold: 0,
@@ -156,7 +157,7 @@ const router = useRouter()
156157
const paramRef = ref({
157158
serviceParam: '',
158159
groupParam: '',
159-
namespaceId: '',
160+
namespaceId: namespaceStore.current.value.namespaceId,
160161
pageNo: 1,
161162
pageSize: 10,
162163
})

0 commit comments

Comments
 (0)