合并
This commit is contained in:
@ -126,7 +126,7 @@ const dialog = reactive<DialogOption>({
|
||||
|
||||
const initFormData: DroneConfigForm = {
|
||||
id: undefined,
|
||||
projectId: currentProject.value.id,
|
||||
projectId: currentProject.value?.id,
|
||||
configName: undefined,
|
||||
configUrl: undefined,
|
||||
dockSocketUrl: undefined,
|
||||
@ -141,7 +141,7 @@ const data = reactive<PageData<DroneConfigForm, DroneConfigQuery>>({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
projectId: currentProject.value.id,
|
||||
projectId: currentProject.value?.id,
|
||||
configName: undefined,
|
||||
configUrl: undefined,
|
||||
params: {}
|
||||
@ -249,7 +249,7 @@ const handleExport = () => {
|
||||
};
|
||||
//监听项目id刷新数据
|
||||
const listeningProject = watch(
|
||||
() => currentProject.value.id,
|
||||
() => currentProject.value?.id,
|
||||
(nid, oid) => {
|
||||
queryParams.value.projectId = nid;
|
||||
form.value.projectId = nid;
|
||||
|
||||
Reference in New Issue
Block a user