This commit is contained in:
syuilo
2024-08-31 13:40:13 +09:00
parent 10dc244d93
commit e7171d9ab2
15 changed files with 42 additions and 83 deletions

View File

@@ -7,7 +7,14 @@
import { Component, onMounted, shallowRef, ShallowRef } from 'vue';
import { EventEmitter } from 'eventemitter3';
import { safeURIDecode } from '@/scripts/safe-uri-decode.js';
function safeURIDecode(str: string): string {
try {
return decodeURIComponent(str);
} catch {
return str;
}
}
interface RouteDefBase {
path: string;