From 7a5a541a4ed2ecd607b9e4545bcd192bcf381f17 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Nov 2020 10:06:19 +0900 Subject: 相対パスでコピーされるのを修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/os.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/os.ts') diff --git a/src/client/os.ts b/src/client/os.ts index 5f21cc39fb..dc0eb77485 100644 --- a/src/client/os.ts +++ b/src/client/os.ts @@ -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'); -- cgit v1.2.3-freya