feat: 使用prettierrc对代码进行格式化

This commit is contained in:
piexlMax(奇淼
2024-11-09 10:32:26 +08:00
parent 87a4ce17e1
commit 7d9af64f6d
139 changed files with 12677 additions and 12656 deletions
+22 -13
View File
@@ -2,10 +2,19 @@
<div>
<div class="w-full h-screen bg-gray-50 flex items-center justify-center">
<div class="flex flex-col items-center text-2xl gap-4">
<img class="w-1/3" src="../../assets/404.png">
<img class="w-1/3" src="../../assets/404.png" />
<p class="text-lg">页面被神秘力量吸走了</p>
<p class="text-lg">常见问题为当前此角色无当前路由,如果确定要使用本路由,请到角色管理进行分配</p>
<p>项目地址:<a href="https://github.com/flipped-aurora/gin-vue-admin" target="_blank" class="text-blue-600 ">https://github.com/flipped-aurora/gin-vue-admin</a></p>
<p class="text-lg">
常见问题为当前此角色无当前路由,如果确定要使用本路由,请到角色管理进行分配
</p>
<p>
项目地址:<a
href="https://github.com/flipped-aurora/gin-vue-admin"
target="_blank"
class="text-blue-600"
>https://github.com/flipped-aurora/gin-vue-admin</a
>
</p>
<el-button @click="toDashboard">返回首页</el-button>
</div>
</div>
@@ -13,16 +22,16 @@
</template>
<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'
})
defineOptions({
name: 'Error'
})
const userStore = useUserStore()
const router = useRouter()
const toDashboard = () => {
router.push({ name: userStore.userInfo.authority.defaultRouter })
}
const userStore = useUserStore()
const router = useRouter()
const toDashboard = () => {
router.push({ name: userStore.userInfo.authority.defaultRouter })
}
</script>
+6 -6
View File
@@ -3,12 +3,12 @@
</template>
<script setup>
import { useRouter } from 'vue-router'
import { useRouter } from 'vue-router'
defineOptions({
name: 'Reload'
})
defineOptions({
name: 'Reload'
})
const router = useRouter()
router.go(-1)
const router = useRouter()
router.go(-1)
</script>