update:个人申请数字证书流程

This commit is contained in:
2021-01-19 17:34:18 +08:00
parent 1b4a68e3c2
commit 7861c622d2
8 changed files with 200 additions and 17 deletions

View File

@@ -1,7 +1,28 @@
import { message } from "ant-design-vue";
import axios from "axios";
export async function get(url, params) {
var response = await axios.get(url, { params });
if (response.status == 200) {
return response.data;
} else if (response.status == 401) {
message.warning(
"未登录或身份认证信息已过期",
(onclose = () => {
top && top.login();
})
);
}
}
export async function post(url, data) {
var response = await axios.post(url, data);
if (response.status == 200) {
return response.data;
} else if (response.status == 401) {
message.warning(
"未登录或身份认证信息已过期",
(onclose = () => {
top && top.login();
})
);
}
}