token消失
This commit is contained in:
parent
e19e348369
commit
672fb2938d
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<navBar v-if="state.boxRelBucketStatus == 1"> 出库 </navBar>
|
||||
<navBar v-if="state.boxRelBucketStatus == 2||state.boxRelBucketStatus ==3"> 画作详情 </navBar>
|
||||
<navBar v-if="state.boxRelBucketStatus == 2||state.boxRelBucketStatus ==3"> 画筒详情 </navBar>
|
||||
<view class="container-box" >
|
||||
<span style="font-weight: bold;text-align: center;" v-if="state.boxRelBucketStatus == 1">
|
||||
保存要出库{{state.locateAddress}}的
|
||||
|
@ -1,7 +1,6 @@
|
||||
import Request from "./request/index.js";
|
||||
import useToast from "@/hooks/toast/useToast.js";
|
||||
const { showMessage } = useToast();
|
||||
console.log(1111, import.meta.env.VITE_API_URL);
|
||||
const request = new Request({
|
||||
baseURL: import.meta.env.VITE_API_URL,
|
||||
timeout: 1000 * 60 * 5,
|
||||
@ -33,8 +32,11 @@ const request = new Request({
|
||||
// response.config.headers["Authorization"] = response.data.data.Token;
|
||||
// }
|
||||
if (response.data.code === 401) {
|
||||
const id = uni.getStorageSync("id",id);
|
||||
const pid = uni.getStorageSync("pid",pid);
|
||||
console.log("id",id)
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/index",
|
||||
url: "/pages/login/index?id=" + id + "&pid=" + pid,
|
||||
});
|
||||
}
|
||||
if ([200, 201, 204].includes(response.status)) {
|
||||
|
Loading…
Reference in New Issue
Block a user