diff --git a/frontend/src/api/modules/setting.ts b/frontend/src/api/modules/setting.ts index f94ea52fe..ef36427e7 100644 --- a/frontend/src/api/modules/setting.ts +++ b/frontend/src/api/modules/setting.ts @@ -18,6 +18,10 @@ export const syncLicense = () => { return http.post(`/licenses/sync`); }; +export const unbindLicense = () => { + return http.post(`/licenses/unbind`); +}; + export const getSettingInfo = () => { return http.post(`/settings/search`); }; diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 9c05257a1..9942f50a2 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1516,6 +1516,8 @@ const message = { quickUpdate: 'Quick Update', import: 'Import', power: 'Authorize', + unbind: 'Unbind License', + unbindHelper: 'All Pro related Settings will be cleared after unbinding. Do you want to continue? ', importLicense: 'Import License', importHelper: 'Please click or drag the license file here', technicalAdvice: 'Technical Advice', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 88f449ca3..fe3e70913 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1414,6 +1414,8 @@ const message = { quickUpdate: '快速更新', import: '導入', power: '授 權', + unbind: '解除綁定', + unbindHelper: '解除綁定後將清除所有專業版相關設置,是否繼續?', importLicense: '導入許可證', importHelper: '請點擊或拖動許可文件到此處', technicalAdvice: '技術諮詢', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index cd1f4c762..575815b8a 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1415,6 +1415,8 @@ const message = { quickUpdate: '快速更新', import: '导入', power: '授 权', + unbind: '解除绑定', + unbindHelper: '解除绑定后将清除所有专业版相关设置,是否继续?', importLicense: '导入许可证', importHelper: '请点击或拖动许可文件到此处', technicalAdvice: '技术咨询', diff --git a/frontend/src/views/setting/license/index.vue b/frontend/src/views/setting/license/index.vue index 3daebfa60..3412d30a0 100644 --- a/frontend/src/views/setting/license/index.vue +++ b/frontend/src/views/setting/license/index.vue @@ -18,6 +18,9 @@ > {{ $t('commons.button.sync') }} + + {{ $t('license.unbind') }} + {{ license.assigneeName || '-' }} @@ -104,7 +107,7 @@