前端eslint调整

This commit is contained in:
piexlMax
2023-09-14 18:47:47 +08:00
parent 636204bbaf
commit a4f86354d3
64 changed files with 3302 additions and 1096 deletions
+12 -11
View File
@@ -6,26 +6,27 @@
<p>页面被神秘力量吸走了(如果您是开源版请联系我们修复)</p>
<p style="font-size:18px;line-height:40px;">常见问题为当前此角色无当前路由,如果确定要使用本路由,请到角色管理进行分配</p>
<p>↓</p>
<img src="../../assets/qm.png" class="w-16 h-16 mt-20">
<img
src="../../assets/qm.png"
class="w-16 h-16 mt-20"
>
<el-button @click="toDashboard">返回首页</el-button>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Error'
}
</script>
<script setup>
import {useUserStore} from "@/pinia/modules/user";
import {useRouter} from "vue-router";
import { useUserStore } from '@/pinia/modules/user'
import { useRouter } from 'vue-router'
defineOptions({
name: 'Error'
})
const userStore = useUserStore()
const router = useRouter()
const toDashboard = () =>{
router.push({name:userStore.userInfo.authority.defaultRouter})
const toDashboard = () => {
router.push({ name: userStore.userInfo.authority.defaultRouter })
}
</script>
+6 -6
View File
@@ -1,14 +1,14 @@
<template>
<div />
</template>
<script>
import { useRouter } from 'vue-router'
export default {
name: 'Reload'
}
</script>
<script setup>
import { useRouter } from 'vue-router'
defineOptions({
name: 'Reload'
})
const router = useRouter()
router.go(-1)
</script>