1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-14 01:34:47 +08:00

feat: 修改前端的消息

This commit is contained in:
zhengkunwang223 2022-12-05 12:20:28 +08:00 committed by zhengkunwang223
parent 096cc7bf61
commit c89de70d87
4 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1 @@
站点创建成功

View File

@ -0,0 +1 @@
默认站点

View File

@ -90,7 +90,7 @@ func NewPrivateKeyClient(email string, privateKey string) (*AcmeClient, error) {
func newConfig(user *AcmeUser) *lego.Config { func newConfig(user *AcmeUser) *lego.Config {
config := lego.NewConfig(user) config := lego.NewConfig(user)
config.CADirURL = "https://acme-v02.api.letsencrypt.org/directory" config.CADirURL = "https://acme-staging-v02.api.letsencrypt.org/directory"
config.UserAgent = "acm_go/0.0.1" config.UserAgent = "acm_go/0.0.1"
config.Certificate.KeyType = certcrypto.RSA2048 config.Certificate.KeyType = certcrypto.RSA2048
return config return config

View File

@ -43,7 +43,7 @@ class RequestHttp {
globalStore.setCsrfToken(response.headers['x-csrf-token']); globalStore.setCsrfToken(response.headers['x-csrf-token']);
} }
if (data.code == ResultEnum.OVERDUE || data.code == ResultEnum.FORBIDDEN) { if (data.code == ResultEnum.OVERDUE || data.code == ResultEnum.FORBIDDEN) {
ElMessage.error(data.msg); ElMessage.error(data.message);
router.replace({ router.replace({
path: '/login', path: '/login',
}); });
@ -63,7 +63,7 @@ class RequestHttp {
return data; return data;
} }
if (data.code && data.code !== ResultEnum.SUCCESS) { if (data.code && data.code !== ResultEnum.SUCCESS) {
ElMessage.error(data.msg); ElMessage.error(data.message);
return Promise.reject(data); return Promise.reject(data);
} }
return data; return data;