|
|
@@ -109,7 +109,7 @@ export function isLogin({callback,t}){
|
|
|
let token = localStorage.getItem('token');
|
|
|
if(!token){
|
|
|
//确认弹框
|
|
|
- ElMessageBox.confirm('您未登录,是否前往登录?', t('common.tip'), {
|
|
|
+ ElMessageBox.confirm(t('common.notLoginTip'), t('common.tip'), {
|
|
|
confirmButtonText: t('common.confirm'),
|
|
|
cancelButtonText: t('common.cancel'),
|
|
|
type: 'warning'
|
|
|
@@ -126,7 +126,7 @@ export function isLogin({callback,t}){
|
|
|
return true;
|
|
|
}
|
|
|
//复制功能
|
|
|
-export function copyText(text, t) {
|
|
|
+export function copyText(text, t, msg=t('common.copySuccess')) {
|
|
|
if (!text) {
|
|
|
DGTMessage.error(t('common.copyError'));
|
|
|
return;
|
|
|
@@ -137,5 +137,5 @@ export function copyText(text, t) {
|
|
|
input.select();
|
|
|
document.execCommand('copy');
|
|
|
document.body.removeChild(input);
|
|
|
- DGTMessage.success(t('common.copySuccess'));
|
|
|
+ DGTMessage.success(msg);
|
|
|
}
|