File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
frontend/src/views/database/redis/conn Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ const loading = ref(false);
112
112
const dialogVisible = ref (false );
113
113
const form = reactive ({
114
114
status: ' ' ,
115
+ type: ' ' ,
115
116
systemIP: ' ' ,
116
117
password: ' ' ,
117
118
serviceName: ' ' ,
@@ -132,11 +133,13 @@ const formRef = ref<FormInstance>();
132
133
133
134
interface DialogProps {
134
135
from: string ;
136
+ type: string ;
135
137
database: string ;
136
138
}
137
139
const acceptParams = (params : DialogProps ): void => {
138
140
form .password = ' ' ;
139
141
form .from = params .from ;
142
+ form .type = params .type ;
140
143
form .database = params .database ;
141
144
loadPassword ();
142
145
dialogVisible .value = true ;
@@ -151,7 +154,7 @@ const random = async () => {
151
154
152
155
const loadPassword = async () => {
153
156
if (form .from === ' local' ) {
154
- const res = await getAppConnInfo (' redis ' , form .database );
157
+ const res = await getAppConnInfo (form . type , form .database );
155
158
form .status = res .data .status ;
156
159
form .password = res .data .password || ' ' ;
157
160
form .port = res .data .port || 3306 ;
You can’t perform that action at this time.
0 commit comments