feat: recycle system
This commit is contained in:
@@ -151,7 +151,7 @@ function resolveId(): string {
|
||||
|
||||
// 竖屏整页进来后转成横屏:回到列表页并恢复右栏选中,而不是继续停在整页详情
|
||||
useExpandToMaster({
|
||||
path: "/management/package-configs",
|
||||
path: "/product/package-configs",
|
||||
id: () => resolveId()
|
||||
});
|
||||
/** 非空说明当前被内联在主从分栏的右栏里 */
|
||||
@@ -217,12 +217,12 @@ async function toEdit(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
await router.push(`/management/package-configs/${config.value.id}/edit`);
|
||||
await router.push(`/product/package-configs/${config.value.id}/edit`);
|
||||
}
|
||||
|
||||
async function toPurchase(): Promise<void> {
|
||||
if (config.value?.id && canPurchase.value) {
|
||||
await router.push(`/management/package-configs/${config.value.id}/purchase`);
|
||||
await router.push(`/product/package-configs/${config.value.id}/purchase`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ function removeConfig(): void {
|
||||
pane.close(true);
|
||||
return;
|
||||
}
|
||||
await router.replace("/management/package-configs");
|
||||
await router.replace("/product/package-configs");
|
||||
} catch (error) {
|
||||
Message.error(getErrorMessage(error, "套餐配置删除失败"));
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user