File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const restart = ref(true);
3232const em = defineEmits ([' update:withDockerRestart' , ' submit' ]);
3333interface DialogProps {
3434 syncList: string ;
35+ open: boolean ;
3536}
3637const emit = () => {
3738 em (' update:withDockerRestart' , false );
@@ -42,6 +43,10 @@ const acceptParams = async (props: DialogProps): Promise<void> => {
4243 emit ();
4344 return ;
4445 }
46+ if (props .open ) {
47+ open .value = true ;
48+ return ;
49+ }
4550 try {
4651 const res = await getSettingInfo ();
4752 if (res .data .proxyType === ' ' || res .data .proxyType === ' close' ) {
Original file line number Diff line number Diff line change @@ -165,9 +165,11 @@ const loadBindNode = (row: any) => {
165165 if (! row .bindNode && row .freeNodes ?.length ) {
166166 return row .bindNode ;
167167 }
168- for (const item of row .freeNodes ) {
169- if (item .addr === row .bindNode ) {
170- return item .name === ' local' ? i18n .global .t (' xpack.node.master' ) : item .addr ;
168+ if (row .freeNodes ) {
169+ for (const item of row .freeNodes ) {
170+ if (item .addr === row .bindNode ) {
171+ return item .name === ' local' ? i18n .global .t (' xpack.node.master' ) : item .addr ;
172+ }
171173 }
172174 }
173175 return row .bindNode ;
@@ -214,6 +216,7 @@ const search = async () => {
214216 .then ((res ) => {
215217 loading .value = false ;
216218 data .value = res .data .items || [];
219+ console .log (data .value );
217220 for (const item of data .value ) {
218221 item .productName = ' product-1panel-pro' ;
219222 item .expiresAt = item .productPro === ' 0' ? ' ' : timestampToDate (Number (item .productPro ));
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ const submitChangePassword = async (formEl: FormInstance | undefined) => {
161161 if (isMasterProductPro .value && (params .proxyDocker || proxyDockerVisible .value )) {
162162 dockerProxyRef .value .acceptParams ({
163163 syncList: ' SyncSystemProxy' ,
164+ open: true ,
164165 });
165166 } else {
166167 loading .value = true ;
You can’t perform that action at this time.
0 commit comments