Comments (3)
如果token不存在,一定是未登录的。
如果存在,这里只代表曾经登录过或者用户自己伪造的token,但是不代表token有效,此时带着这个token值去请求后端接口,又有两个逻辑路径:
1.token有效,则正常返回数据。
2.token无效,后端会返回一个错误码416或者419,当收到这两个错误码时,也会跳转到登录页面。
from vue3-admin.
是 这里 的逻辑吧,这块明白了。感谢解惑。
from vue3-admin.
OK
from vue3-admin.
Related Issues (20)
- indexConfig 后台存在几个问题,首页配置模块删除提示未知异常等 HOT 2
- setup函数太大了
- mac M1 直接clone下来后 install 完,run,失败 HOT 1
- 添加新商品上传图片时一直提示管理员账户未登录 HOT 1
- Security concern HOT 1
- 能否把所有依赖升级到最新版 HOT 1
- 问几个问题 HOT 1
- 【bug】admin登录后没有带token HOT 1
- Mac 启动报错, win能正常显示页面
- 建表语句在哪里? HOT 1
- 测试账号无法登录 HOT 1
- 轮播图那块新增好像有点问题 HOT 1
- 后台管理里,没有多账户的权限管理 HOT 1
- 安装依赖失败 HOT 1
- 测试账号不能登陆 HOT 1
- **,刷尼玛的 star,卖课滚一边去 HOT 2
- 访问不存在路径,没有跳转到404页面 HOT 1
- 请问项目可以商用嘛?
- maybe proper to rename project to newbee-mall-vue3-admin
- http://vue3-admin.newbee.ltd/#/dashboard组件在源码中没有
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue3-admin.