mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
perf(X-Pack): 还原至社区版后重新登录
This commit is contained in:
committed by
fit2cloud-chenyw
parent
0591c03ca4
commit
dc090cb25d
@@ -2464,7 +2464,7 @@ export default {
|
||||
Professional: 'Professional Edition',
|
||||
Embedded: 'Embedded Edition',
|
||||
support: 'Get technical support',
|
||||
update_success: 'Update successful',
|
||||
update_success: 'Update successful, please log in again',
|
||||
serial_no: 'Serial number',
|
||||
remark: 'Remark',
|
||||
back_community: 'Revert to Community Edition',
|
||||
|
||||
@@ -2394,7 +2394,7 @@ export default {
|
||||
Professional: '專業版',
|
||||
Embedded: '嵌入式版',
|
||||
support: '取得技術支援',
|
||||
update_success: '更新成功',
|
||||
update_success: '更新成功,請重新登錄',
|
||||
serial_no: '序號',
|
||||
remark: '備註',
|
||||
back_community: '還原至社區版',
|
||||
|
||||
@@ -2400,7 +2400,7 @@ export default {
|
||||
Professional: '专业版',
|
||||
Embedded: '嵌入式版',
|
||||
support: '获取技术支持',
|
||||
update_success: '更新成功',
|
||||
update_success: '更新成功,请重新登录',
|
||||
serial_no: '序列号',
|
||||
remark: '备注',
|
||||
back_community: '还原至社区版',
|
||||
|
||||
@@ -9,7 +9,8 @@ import { ElMessage, ElMessageBox } from 'element-plus-secondary'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import { useCache } from '@/hooks/web/useCache'
|
||||
|
||||
import { logoutApi } from '@/api/login'
|
||||
import { logoutHandler } from '@/utils/logout'
|
||||
const dialogVisible = ref(false)
|
||||
const { wsCache } = useCache('localStorage')
|
||||
const { t } = useI18n()
|
||||
@@ -70,13 +71,17 @@ const back2Community = () => {
|
||||
.then(() => {
|
||||
revertApi().then(() => {
|
||||
ElMessage.success(t('about.update_success'))
|
||||
window.location.reload()
|
||||
logout()
|
||||
})
|
||||
})
|
||||
.catch(e => {
|
||||
console.error(e)
|
||||
})
|
||||
}
|
||||
const logout = async () => {
|
||||
await logoutApi()
|
||||
logoutHandler()
|
||||
}
|
||||
const getLicenseInfo = () => {
|
||||
validateHandler({}, res => {
|
||||
const info = getLicense(res.data)
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: a40e5753b4...e22aa26ec7
Reference in New Issue
Block a user