mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Client App
This commit is contained in:
41
src/static/client/dist/assets/index-Cun74Xi8.js
vendored
Normal file
41
src/static/client/dist/assets/index-Cun74Xi8.js
vendored
Normal file
File diff suppressed because one or more lines are too long
41
src/static/client/dist/assets/index-DMoJJGnR.js
vendored
41
src/static/client/dist/assets/index-DMoJJGnR.js
vendored
File diff suppressed because one or more lines are too long
2
src/static/client/dist/client.html
vendored
2
src/static/client/dist/client.html
vendored
@@ -28,7 +28,7 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/static/client/dist/assets/index-DMoJJGnR.js"></script>
|
||||
<script type="module" crossorigin src="/static/client/dist/assets/index-Cun74Xi8.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/static/client/dist/assets/index-tn8r-uDQ.css">
|
||||
</head>
|
||||
<body>
|
||||
|
@@ -6,7 +6,7 @@ export const requestURl = (url) => {
|
||||
: `${window.location.protocol}//${(window.location.host + window.location.pathname + url).replace(/\/\//g, '/')}`
|
||||
}
|
||||
|
||||
const router = useRouter()
|
||||
// const router = useRouter()
|
||||
|
||||
export const axiosPost = async (URL, body = {}) => {
|
||||
try{
|
||||
@@ -14,9 +14,9 @@ export const axiosPost = async (URL, body = {}) => {
|
||||
return res.data
|
||||
} catch (error){
|
||||
console.log(error)
|
||||
if (error.status === 401){
|
||||
await router.push('/signin')
|
||||
}
|
||||
// if (error.status === 401){
|
||||
// await router.push('/signin')
|
||||
// }
|
||||
|
||||
return undefined
|
||||
}
|
||||
@@ -28,9 +28,9 @@ export const axiosGet = async (URL, query = {}) => {
|
||||
return res.data
|
||||
} catch (error){
|
||||
console.log(error)
|
||||
if (error.status === 401){
|
||||
await router.push('/signin')
|
||||
}
|
||||
// if (error.status === 401){
|
||||
// await router.push('/signin')
|
||||
// }
|
||||
return undefined
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user