generated from kevisual/vite-react-template
feat: 在工作区启动后自动刷新状态并隐藏提示
This commit is contained in:
@@ -274,6 +274,7 @@ export const useRepoStore = create<State>((set, get) => {
|
|||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
toast.dismiss(loadingToastId)
|
toast.dismiss(loadingToastId)
|
||||||
toast.success(`工作区已启动,正在打开: ${check.data.url}`)
|
toast.success(`工作区已启动,正在打开: ${check.data.url}`)
|
||||||
|
get().refresh({ showTips: false })
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.open(check.data?.url, '_blank')
|
window.open(check.data?.url, '_blank')
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|||||||
Reference in New Issue
Block a user