mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-04-06 17:10:29 +08:00
Fix: api/instance permission
This commit is contained in:
parent
2afc06b33f
commit
dcae252cd3
@ -308,7 +308,7 @@ export const ORIGIN_LAYOUT_CONFIG: PageLayoutConfig[] = [
|
||||
]
|
||||
},
|
||||
{
|
||||
page: "/consumer",
|
||||
page: "/customer",
|
||||
items: [
|
||||
{
|
||||
id: getRandomId(),
|
||||
|
@ -125,7 +125,7 @@ let originRouterConfig = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/consumer",
|
||||
path: "/customer",
|
||||
name: t("我的应用"),
|
||||
component: LayoutContainer,
|
||||
meta: {
|
||||
|
@ -63,7 +63,7 @@ const actions = [
|
||||
<card-panel style="height: 100%">
|
||||
<template #title>{{ card.title }}</template>
|
||||
<template #body>
|
||||
<a-row :gutter="[0, 16]">
|
||||
<a-row :gutter="[0, 12]">
|
||||
<fade-up-animation>
|
||||
<action-button
|
||||
v-for="(action, index) in actions"
|
||||
|
@ -11,11 +11,11 @@ import { systemConfig } from "../../setting";
|
||||
|
||||
const router = new Router({ prefix: "/instance" });
|
||||
|
||||
// [Top-level Permission]
|
||||
// [Low-level Permission]
|
||||
// Get the details of an instance
|
||||
router.get(
|
||||
"/",
|
||||
permission({ level: 10 }),
|
||||
permission({ level: 1 }),
|
||||
validator({ query: { remote_uuid: String, uuid: String } }),
|
||||
async (ctx) => {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user