add result panel.

This commit is contained in:
2023-01-10 16:16:14 +08:00
parent a3456595a5
commit e3db109317
22 changed files with 714 additions and 172 deletions

View File

@@ -6,11 +6,10 @@ const http = axios.create({
xsrfCookieName: "csrftoken",
})
// TODO
http.interceptors.response.use(
(res) => {
if (res.data.error) {
// 若后端返回为登录则为session失效应退出当前登录用户
// // TODO: 若后端返回为登录则为session失效应退出当前登录用户
if (res.data.data.startsWith("Please login")) {
}
return Promise.reject(res.data)