fix: 修改token取反

This commit is contained in:
100011797 2023-01-10 11:33:59 +08:00
parent be792dd961
commit da0fc1b45a
2 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,7 @@ request.interceptors.request.use(config => {
// 让每个请求携带自定义 token 请根据实际情况自行修改
const token = LocalStore.get(TOKEN_KEY)
// const token = store.$state.tokenAlias
if (token) {
if (!token) {
setTimeout(() => {
router.replace({
path: LoginPath

View File

@ -30,6 +30,8 @@
</template>
<script setup lang="ts">
import { post } from "@/utils/request";
// :request="post('/device-product/_query', {})"
</script>