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:
parent
2ea0a80160
commit
cc87ab3ccc
@ -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
|
||||
}
|
||||
},
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user