摘要:
const res = await User.findOne({ userName, userPwd }, 'userId userName userEmail state role deptId roleList') 第一个参数是条件字段, 第二个参数是指定查询字段 1、字符串类型用空格分割如:' 阅读全文
posted @ 2021-07-04 17:36
LJLong
阅读(59)
评论(0)
推荐(0)
摘要:
一、什么是JWT? (1) JWT是一种跨域认证解决方案 二、JWT解决了什么问题? (1) 数据传输更加简单和高效 (2) JWT会生成签名,保证传输的安全 (3) JWT具有时效性 (4) JWT更高效利用集群做好单点登录 三、JWT原理 (1) 服务器认证和,生成一个JSON对象,后续通过JS 阅读全文
posted @ 2021-07-04 15:33
LJLong
阅读(115)
评论(0)
推荐(0)
摘要:
一、组件地址必须带后缀.vue // 正确 import ('./../views/xxx.vue') // 错误 import ('./../views/xxx') 二、在使用vite开发时,可以配置别名,用来解决./../问题.类似于Vue里面的@(注:在vite.config.js里面配置) 阅读全文
posted @ 2021-07-04 14:31
LJLong
阅读(72)
评论(0)
推荐(0)
摘要:
const routes = [ { name: 'home', path: '/', component: Home, meta: { title: '首页' }, redirect: '/welcome', children: [ { name: 'welcome', path: '/welco 阅读全文
posted @ 2021-07-04 14:20
LJLong
阅读(40)
评论(0)
推荐(0)

浙公网安备 33010602011771号