Browse Source

报错修复

master
skyboy 8 months ago
parent
commit
9bb0340677
  1. 4
      frontend/src/system/index.ts
  2. 3
      frontend/src/system/menu/Tary.ts

4
frontend/src/system/index.ts

@ -311,8 +311,8 @@ export class System {
);
}
if (typeof options.window.content !== 'string') {
//console.log('提交')
options.window.content = markRaw(options.window.content);
console.log('index.ts:', options.window.content)
//options.window.content = markRaw(options.window.content);
}
// console.log(options.window)
// console.log(options.name)

3
frontend/src/system/menu/Tary.ts

@ -18,7 +18,8 @@ export class Tray {
if (typeof options.image === 'string') {
this.image = options.image;
} else {
this.image = markRaw(options.image);
//this.image = markRaw(options.image);
console.log('tary.ts:', options.image)
}
if (typeof options.component === 'string') {
this.component = options.component;

Loading…
Cancel
Save