Fix
This commit is contained in:
parent
cd4c7689b7
commit
a434cfbe0d
@ -60,7 +60,7 @@ init(async (launch, os) => {
|
|||||||
});
|
});
|
||||||
if (o.cb) vm.$once('closed', o.cb);
|
if (o.cb) vm.$once('closed', o.cb);
|
||||||
} else {
|
} else {
|
||||||
this.$root.new(() => import('./views/components/post-form-window.vue').then(m => m.default), {
|
this.$root.newAsync(() => import('./views/components/post-form-window.vue').then(m => m.default), {
|
||||||
reply: o.reply,
|
reply: o.reply,
|
||||||
mention: o.mention,
|
mention: o.mention,
|
||||||
animation: o.animation == null ? true : o.animation
|
animation: o.animation == null ? true : o.animation
|
||||||
|
@ -449,25 +449,24 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS], os: MiOS)
|
|||||||
getMetaSync: os.getMetaSync,
|
getMetaSync: os.getMetaSync,
|
||||||
signout: os.signout,
|
signout: os.signout,
|
||||||
new(vm, props) {
|
new(vm, props) {
|
||||||
if (typeof vm === 'function') {
|
const x = new vm({
|
||||||
return new Promise((res) => {
|
parent: this,
|
||||||
vm().then(vm => {
|
propsData: props
|
||||||
const x = new vm({
|
}).$mount();
|
||||||
parent: this,
|
document.body.appendChild(x.$el);
|
||||||
propsData: props
|
return x;
|
||||||
}).$mount();
|
},
|
||||||
document.body.appendChild(x.$el);
|
newAsync(vm, props) {
|
||||||
res(x);
|
return new Promise((res) => {
|
||||||
});
|
vm().then(vm => {
|
||||||
|
const x = new vm({
|
||||||
|
parent: this,
|
||||||
|
propsData: props
|
||||||
|
}).$mount();
|
||||||
|
document.body.appendChild(x.$el);
|
||||||
|
res(x);
|
||||||
});
|
});
|
||||||
} else {
|
});
|
||||||
const x = new vm({
|
|
||||||
parent: this,
|
|
||||||
propsData: props
|
|
||||||
}).$mount();
|
|
||||||
document.body.appendChild(x.$el);
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
dialog(opts) {
|
dialog(opts) {
|
||||||
const vm = this.new(Dialog, opts);
|
const vm = this.new(Dialog, opts);
|
||||||
|
@ -50,7 +50,7 @@ init((launch, os) => {
|
|||||||
document.documentElement.style.overflow = 'auto';
|
document.documentElement.style.overflow = 'auto';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$root.new(() => import('./views/components/post-form-dialog.vue').then(m => m.default), {
|
this.$root.newAsync(() => import('./views/components/post-form-dialog.vue').then(m => m.default), {
|
||||||
reply: o.reply,
|
reply: o.reply,
|
||||||
mention: o.mention,
|
mention: o.mention,
|
||||||
renote: o.renote
|
renote: o.renote
|
||||||
|
Loading…
Reference in New Issue
Block a user