mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-03-07 16:26:45 +08:00
fix: exchange router bug
This commit is contained in:
parent
46ff718a8f
commit
5fd3564b47
4
frontend/components.d.ts
vendored
4
frontend/components.d.ts
vendored
@ -70,11 +70,8 @@ declare module 'vue' {
|
||||
CardOperator: typeof import('./src/components/CardOperator.vue')['default']
|
||||
CardPanel: typeof import('./src/components/CardPanel.vue')['default']
|
||||
CmdAssistantDialog: typeof import('./src/components/fc/CmdAssistantDialog/index.vue')['default']
|
||||
copy: typeof import('./src/components/fc/UseRedeemDialog copy.vue')['default']
|
||||
CopyButton: typeof import('./src/components/CopyButton.vue')['default']
|
||||
DataStatistic: typeof import('./src/components/DataStatistic.vue')['default']
|
||||
DeleteInstance: typeof import("./src/components/fc/DeleteInstance.vue")["default"]
|
||||
DeleteInstanceDialog: typeof import("./src/widgets/instance/dialogs/DeleteInstanceDialog.vue")["default"]
|
||||
Editor: typeof import('./src/components/Editor.vue')['default']
|
||||
Empty: typeof import('./src/components/Empty.vue')['default']
|
||||
FadeUpAnimation: typeof import('./src/components/FadeUpAnimation.vue')['default']
|
||||
@ -88,7 +85,6 @@ declare module 'vue' {
|
||||
LeftMenusPanel: typeof import('./src/components/LeftMenusPanel.vue')['default']
|
||||
LineOption: typeof import('./src/components/LineOption.vue')['default']
|
||||
Loading: typeof import('./src/components/Loading.vue')['default']
|
||||
LoginBusiness: typeof import('./src/components/LoginBusiness.vue')['default']
|
||||
MinecraftJavaForm: typeof import('./src/components/fc/CmdAssistantDialog/MinecraftJavaForm.vue')['default']
|
||||
MyselfInfoDialog: typeof import('./src/components/MyselfInfoDialog.vue')['default']
|
||||
NewCardList: typeof import('./src/components/NewCardList/index.vue')['default']
|
||||
|
@ -34,7 +34,6 @@ import { useLayoutContainerStore } from "@/stores/useLayoutContainerStore";
|
||||
import { reportErrorMsg } from "@/tools/validator";
|
||||
import { openInstanceTagsEditor, useDeleteInstanceDialog } from "@/components/fc/index";
|
||||
import _ from "lodash";
|
||||
import { batchDelete } from "@/services/apis/instance";
|
||||
|
||||
const props = defineProps<{
|
||||
card: LayoutCard;
|
||||
@ -244,6 +243,7 @@ const instanceOperations = computed(() =>
|
||||
message.success(t("实例删除成功"));
|
||||
refreshList();
|
||||
},
|
||||
danger: true,
|
||||
disabled: containerState.isDesignMode
|
||||
}
|
||||
])
|
||||
|
@ -1925,7 +1925,7 @@
|
||||
"TXT_CODE_9fed23ab": "请输入镜像名称",
|
||||
"TXT_CODE_b52cb76c": "请选择网络模式",
|
||||
"TXT_CODE_2ab036a4": "请输入游戏服务器端口",
|
||||
"TXT_CODE_c5b38d90": "续费的实例规格不匹配,无法完成续费操作!",
|
||||
"TXT_CODE_c5b38d90": "续费的实例规格不匹配,无法完成续费,请购买正确的套餐!",
|
||||
"TXT_CODE_13411df7": "SSO 登录失败,请重新回到原页面尝试重新跳转登录!",
|
||||
"TXT_CODE_a2544278": "实例标签",
|
||||
"TXT_CODE_f84ae54f": "实例拥有标签之后,MCSManager 在显示这些实例时,将自动按照标签名字对实例进行分类供用户筛选,标签名字支持任何语言。",
|
||||
|
@ -186,7 +186,11 @@ export async function buyOrRenewInstance(
|
||||
|
||||
const config: IGlobalInstanceConfig = instanceInfo.config || {};
|
||||
|
||||
if (config.category && config.category != params.category_id) {
|
||||
if (!config.category || isNaN(Number(config.category))) {
|
||||
throw new Error(t("此实例并不是从商店购买的,无法进行续费,请联系商家处理!"));
|
||||
}
|
||||
|
||||
if (config.category !== Number(params.category_id)) {
|
||||
throw new Error(t("TXT_CODE_c5b38d90"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user