摘要: 路由别名配置 - alias 配置路由重定向,当用户访问/a的时候,URL会被替换/b之后匹配实际路由/b 配置路由别名,/a的别名是/b,当用户访问/b的时候,URL会保持为/b,但路由匹配为/a,和用户访问/a一样 const routes: Array<RouteRecordRaw> = [ 阅读全文
posted @ 2023-01-05 13:16 Felix_Openmind 阅读(133) 评论(0) 推荐(0)
摘要: 访问网页主域名的时候,识别用户身份跳转到不同的首页,配置路由重定向 const routes: Array<RouteRecordRaw> = [ // 访问主域名的时候,根据用户的登录信息,重定向到不同的页面 { path: "/", redirect: () => { // loginInfo是 阅读全文
posted @ 2023-01-05 13:05 Felix_Openmind 阅读(1431) 评论(0) 推荐(0)
摘要: 子组件Child.vue <template> <hr/> {{INFO}} <hr/> <button @click="changeInfo">changeInfo</button> </template> <script setup lang="ts"> import {ref, reactiv 阅读全文
posted @ 2023-01-05 11:00 Felix_Openmind 阅读(549) 评论(0) 推荐(0)
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}