feat: bug fix
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "商城",
|
"name" : "商城",
|
||||||
"appid" : "__UNI__4143309",
|
"appid" : "__UNI__A2B711F",
|
||||||
"description" : "基于 uni-app + Vue3 技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。",
|
"description" : "基于 uni-app + Vue3 技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。",
|
||||||
"versionName" : "2025.09",
|
"versionName" : "2025.09",
|
||||||
"versionCode" : "183",
|
"versionCode" : "183",
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
import SelectPic from '@/pages/uploadClothes/SelectPic.vue';
|
import SelectPic from '@/pages/uploadClothes/SelectPic.vue';
|
||||||
import { pattern } from '@/sheep/store/fittingRoom';
|
import { pattern } from '@/sheep/store/fittingRoom';
|
||||||
import FittingRoomApi from '../../sheep/api/fittingRoom';
|
import FittingRoomApi from '../../sheep/api/fittingRoom';
|
||||||
|
import { getAccessToken } from '@/sheep/request';
|
||||||
|
|
||||||
const fittingRoomStore = sheep.$store('fittingRoom');
|
const fittingRoomStore = sheep.$store('fittingRoom');
|
||||||
|
|
||||||
@@ -75,14 +76,16 @@
|
|||||||
isUpdate: isEdit ? true : undefined,
|
isUpdate: isEdit ? true : undefined,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
sheep.$router.redirect('/pages/fittingRoom/index');
|
// sheep.$router.redirect('/pages/fittingRoom/index');
|
||||||
|
sheep.$router.redirect(`/pages/fittingRoom/index?token=${getAccessToken()}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteClothes() {
|
function deleteClothes() {
|
||||||
FittingRoomApi.deleteCloth({ id: clothesId.value }).then((res) => {
|
FittingRoomApi.deleteCloth({ id: clothesId.value }).then((res) => {
|
||||||
fittingRoomStore.currentClothes = [];
|
fittingRoomStore.currentClothes = [];
|
||||||
sheep.$router.redirect('/pages/fittingRoom/index');
|
// sheep.$router.redirect('/pages/fittingRoom/index');
|
||||||
|
sheep.$router.redirect(`/pages/fittingRoom/index?token=${getAccessToken()}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user