Co-authored-by: qingguo <qingguo@lexin.com>
This commit is contained in:
GQ1994 2025-05-17 12:32:27 +08:00 • committed by GitHub
commit e7659ecd9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 89 additions and 83 deletions

View file

@ -2,7 +2,6 @@
import cn from '@/utils/classnames'
import Modal from '@/app/components/base/modal'
import Input from '@/app/components/base/input'
import { WEB_PREFIX } from '@/config'
import { useTranslation } from 'react-i18next'
import { useState } from 'react'
import { useContext } from 'use-context-selector'
@ -34,7 +33,7 @@ const EditWorkspaceModal = ({
},
})
notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') })
location.assign(WEB_PREFIX)
location.assign(`${location.origin}`)
}
catch {
notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') })