修改部分规则模块删除无用前端 新增前端界面
This commit is contained in:
61
modeler/mock/files.ts
Normal file
61
modeler/mock/files.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
import {MockMethod} from 'vite-plugin-mock';
|
||||
import {createResponse} from './core';
|
||||
|
||||
export default [
|
||||
{
|
||||
url: '/api/finder/browser',
|
||||
method: 'post',
|
||||
response: () => {
|
||||
return {
|
||||
success: true,
|
||||
message: null,
|
||||
data: [
|
||||
{
|
||||
name: 'home',
|
||||
directory: true,
|
||||
path: '/home',
|
||||
children: [
|
||||
{
|
||||
name: 'users',
|
||||
directory: true,
|
||||
path: '/users',
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'usr',
|
||||
directory: true,
|
||||
path: '/usr',
|
||||
children: [
|
||||
{
|
||||
name: 'opt',
|
||||
directory: true,
|
||||
path: '/opt',
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'var',
|
||||
directory: true,
|
||||
path: '/var',
|
||||
children: [
|
||||
{
|
||||
name: 'lib',
|
||||
directory: true,
|
||||
path: '/lib',
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
] as MockMethod[];
|
||||
Reference in New Issue
Block a user