mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:15:36 +00:00
fix(client): migration error
This commit is contained in:
parent
19341952b9
commit
40c1a2b2ce
@ -8,7 +8,9 @@ export default class extends Migration {
|
||||
const routes = await uiRoutes.find();
|
||||
for (const route of routes) {
|
||||
if (route.uiSchemaUid && route?.options?.component === 'AdminLayout') {
|
||||
instance.set('options.adminSchemaUid', route.uiSchemaUid);
|
||||
const options = instance.options || {};
|
||||
options['adminSchemaUid'] = route.uiSchemaUid;
|
||||
instance.set('options', options);
|
||||
console.log('options.adminSchemaUid', route.uiSchemaUid);
|
||||
await instance.save();
|
||||
return;
|
@ -8,7 +8,9 @@ export default class extends Migration {
|
||||
const routes = await uiRoutes.find();
|
||||
for (const route of routes) {
|
||||
if (route.uiSchemaUid && route?.options?.component === 'MApplication') {
|
||||
instance.set('options.mobileSchemaUid', route.uiSchemaUid);
|
||||
const options = instance.options || {};
|
||||
options['mobileSchemaUid'] = route.uiSchemaUid;
|
||||
instance.set('options', options);
|
||||
console.log('options.mobileSchemaUid', route.uiSchemaUid);
|
||||
await instance.save();
|
||||
return;
|
Loading…
Reference in New Issue
Block a user