mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:26:55 +00:00
fix(mobile-client): remove routes
This commit is contained in:
parent
836b34a6a4
commit
c4be5315ce
@ -1,6 +1,5 @@
|
|||||||
import { Plugin } from '@nocobase/server';
|
import { Plugin } from '@nocobase/server';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { routes } from './routes';
|
|
||||||
|
|
||||||
export class MobileClientPlugin extends Plugin {
|
export class MobileClientPlugin extends Plugin {
|
||||||
afterAdd() {}
|
afterAdd() {}
|
||||||
@ -16,12 +15,12 @@ export class MobileClientPlugin extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async install() {
|
async install() {
|
||||||
const repository = this.app.db.getRepository('uiRoutes');
|
// const repository = this.app.db.getRepository('uiRoutes');
|
||||||
for (const values of routes) {
|
// for (const values of routes) {
|
||||||
await repository.create({
|
// await repository.create({
|
||||||
values,
|
// values,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
const uiSchemas = this.db.getRepository<any>('uiSchemas');
|
const uiSchemas = this.db.getRepository<any>('uiSchemas');
|
||||||
const systemSettings = this.db.getRepository('systemSettings');
|
const systemSettings = this.db.getRepository('systemSettings');
|
||||||
const schema = await uiSchemas.insert({
|
const schema = await uiSchemas.insert({
|
||||||
|
Loading…
Reference in New Issue
Block a user