fix ts lint warning: Strings must use singlequote

This commit is contained in:
2025-02-05 17:14:34 +08:00
parent a7788c87be
commit 14191e4f1e
35 changed files with 127 additions and 127 deletions

View File

@@ -4,14 +4,14 @@ import { Router } from 'vue-router';
import { App } from 'vue';
export default boot(({ app, router }: { app: App<Element>; router: Router }) => {
document.documentElement.lang="ja-JP";
document.documentElement.lang='ja-JP';
app.config.errorHandler = (err: any, instance: any, info: string) => {
if (err.response && err.response.status === 401) {
// 認証エラーの場合再ログインする
console.error('(; ゚Д゚)/認証エラー(401)', err, info);
localStorage.removeItem('token');
router.replace({
path:"/login",
path:'/login',
query:{redirect:router.currentRoute.value.fullPath}
});
} else {