File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 136
136
// @ts-ignore
137
137
import { initDB } from ' @/api/initdb'
138
138
import { reactive , ref } from ' vue'
139
- import { ElLoading , ElMessage } from ' element-plus'
139
+ import { ElLoading , ElMessage , ElMessageBox } from ' element-plus'
140
140
import { useRouter } from ' vue-router'
141
141
142
142
defineOptions ({
274
274
type: ' success' ,
275
275
message: res .msg
276
276
})
277
- router .push ({ name: ' Login' })
277
+
278
+ // 显示AI助手配置提示弹窗
279
+ ElMessageBox .confirm (
280
+ ' 已经完成基础数据库初始化!建议先进行编辑器AI助手配置,以获得更好的开发体验。' ,
281
+ ' 配置完成' ,
282
+ {
283
+ confirmButtonText: ' 查看AI配置文档' ,
284
+ cancelButtonText: ' 稍后配置' ,
285
+ type: ' success' ,
286
+ center: true
287
+ }
288
+ ).then (() => {
289
+ // 点击确认按钮,打开AI配置文档
290
+ window .open (' https://www.gin-vue-admin.com/guide/server/mcp.html' , ' _blank' )
291
+ router .push ({ name: ' Login' })
292
+ }).catch (() => {
293
+ // 点击取消按钮或关闭弹窗,直接跳转到登录页
294
+ router .push ({ name: ' Login' })
295
+ })
278
296
}
279
297
loading .close ()
280
298
} catch (_) {
You can’t perform that action at this time.
0 commit comments