mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-25 07:57:18 +08:00
31 lines
581 B
TypeScript
31 lines
581 B
TypeScript
// 模拟后端动态生成 有权限的路由路径
|
|
import { MockMethod } from 'vite-plugin-mock'
|
|
|
|
const permissionPath = {
|
|
page: [
|
|
'/permission',
|
|
'/permission/page/index',
|
|
'/permission/button/index',
|
|
|
|
// '/basic',
|
|
// '/basic/queryClub/index',
|
|
// '/basic/queryClub/queryClub',
|
|
|
|
'/finance',
|
|
'/finance/diamondData'
|
|
],
|
|
btn: ['btn-edit', 'edit-create']
|
|
}
|
|
export default [
|
|
{
|
|
url: '/getAsyncPath',
|
|
method: 'get',
|
|
response: () => {
|
|
return {
|
|
success: true,
|
|
data: permissionPath
|
|
}
|
|
}
|
|
}
|
|
] as MockMethod[]
|