相対パスでコピーされるのを修正

This commit is contained in:
syuilo
2020-11-03 10:06:19 +09:00
parent 72b03e009c
commit 7a5a541a4e
5 changed files with 45 additions and 33 deletions

View File

@ -177,10 +177,10 @@ export function popup(component: Component | typeof import('*.vue'), props: Reco
};
}
export function pageWindow(url: string) {
const { component, props } = resolve(url);
export function pageWindow(path: string) {
const { component, props } = resolve(path);
popup(defineAsyncComponent(() => import('@/components/page-window.vue')), {
initialUrl: url,
initialPath: path,
initialComponent: markRaw(component),
initialProps: props,
}, {}, 'closed');