Fix: api/instance permission

This commit is contained in:
unitwk 2023-09-25 11:28:54 +08:00
parent 2afc06b33f
commit dcae252cd3
4 changed files with 5 additions and 5 deletions

View File

@ -308,7 +308,7 @@ export const ORIGIN_LAYOUT_CONFIG: PageLayoutConfig[] = [
]
},
{
page: "/consumer",
page: "/customer",
items: [
{
id: getRandomId(),

View File

@ -125,7 +125,7 @@ let originRouterConfig = [
}
},
{
path: "/consumer",
path: "/customer",
name: t("我的应用"),
component: LayoutContainer,
meta: {

View File

@ -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"

View File

@ -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 {