Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 19:09:21 +08:00

chore: 还原不必要的 route title,优化 hook 示例文案

This commit is contained in:
pany 2023-08-31 08:53:35 +08:00
parent 2ea0a80160
commit cc87ab3ccc
3 changed files with 5 additions and 7 deletions

View File

@ -26,7 +26,6 @@ export const constantRoutes: RouteRecordRaw[] = [
path: "/403",
component: () => import("@/views/error-page/403.vue"),
meta: {
title: "403",
hidden: true
}
},
@ -34,7 +33,6 @@ export const constantRoutes: RouteRecordRaw[] = [
path: "/404",
component: () => import("@/views/error-page/404.vue"),
meta: {
title: "404",
hidden: true
},
alias: "/:pathMatch(.*)*"
@ -43,7 +41,6 @@ export const constantRoutes: RouteRecordRaw[] = [
path: "/login",
component: () => import("@/views/login/index.vue"),
meta: {
title: "登录",
hidden: true
}
},

View File

@ -41,7 +41,7 @@ const queryError = async () => {
<template>
<div class="app-container">
<h4>该示例是演示通过将要执行的函数传递给 hook hook 自动开启全屏 loading函数执行结束后自动关闭 loading</h4>
<el-button @click="querySuccess">查询成功</el-button>
<el-button @click="queryError">查询失败</el-button>
<el-button type="primary" @click="querySuccess">查询成功</el-button>
<el-button type="danger" @click="queryError">查询失败</el-button>
</div>
</template>

View File

@ -9,14 +9,15 @@ const { setWatermark: setGlobalWatermark, clear: clearGlobalWatermark } = useWat
<template>
<div class="app-container">
<h4>该示例是演示通过调用 hook开启或关闭水印支持局部全局自定义样式</h4>
<div ref="localRef" class="local" />
<el-button-group>
<el-button type="primary" @click="setWatermark('局部水印', { color: '#409eff' })">创建局部水印</el-button>
<el-button type="primary" @click="clear">清除局部水印</el-button>
<el-button type="danger" @click="clear">清除局部水印</el-button>
</el-button-group>
<el-button-group>
<el-button type="primary" @click="setGlobalWatermark('全局水印')">创建全局水印</el-button>
<el-button type="primary" @click="clearGlobalWatermark">清除全局水印</el-button>
<el-button type="danger" @click="clearGlobalWatermark">清除全局水印</el-button>
</el-button-group>
</div>
</template>