mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-14 01:34:47 +08:00
feat: 修改前端的消息
This commit is contained in:
parent
096cc7bf61
commit
c89de70d87
@ -0,0 +1 @@
|
|||||||
|
站点创建成功
|
1
apps/nginx/versions/1.23.1/root/index.html
Normal file
1
apps/nginx/versions/1.23.1/root/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
默认站点
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user