no message
This commit is contained in:
@@ -1576,7 +1576,7 @@ const essence = () => {
|
||||
|
||||
// 删除
|
||||
const deleteItem = () => {
|
||||
managerDelete(token)
|
||||
managerDelete(topicToken.value)
|
||||
.then(() => redirectToExternalWebsite("/", "_self"))
|
||||
.finally(() => cutShow());
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ axios.interceptors.request.use(
|
||||
async (config) => {
|
||||
// 开发时登录用的,可以直接替换小程序的 authorization
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
const miucms_session = "3b01343c65e3b2fa3ce32ae26feb3a9b";
|
||||
const miucms_session = "01346a38444d71aaadb3adad52b52c39";
|
||||
document.cookie = "miucms_session=" + miucms_session;
|
||||
config["headers"]["authorization"] = miucms_session;
|
||||
}
|
||||
@@ -103,7 +103,7 @@ const del = (url, params) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
//是将对象 序列化成URL的形式,以&进行拼接
|
||||
axios
|
||||
.delete(url, params)
|
||||
.delete(url, {params})
|
||||
.then((res) => {
|
||||
let data = res.data;
|
||||
if (data.code == 401 && !process.server) goLogin();
|
||||
|
||||
Reference in New Issue
Block a user