mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-05-14 04:42:09 +08:00
docs: 图片地址更换为本地文件 (基础篇)
This commit is contained in:
@@ -180,4 +180,4 @@ Maven依赖一直无法加载成功?[参考解决方案](https://sa-token.cc/d
|
||||
- 2、从根目录导入项目。
|
||||
- 3、选择相应的示例添加为 Maven 项目,打开 XxxApplication.java 运行。
|
||||
|
||||

|
||||
<img src="/big-file/doc/start/import-demo-run.png" alt="运行示例" title="s-w-sh">
|
||||
@@ -139,9 +139,9 @@ public class UserController {
|
||||
### 6、运行
|
||||
启动代码,从浏览器依次访问上述测试接口:
|
||||
|
||||

|
||||
<img src="/big-file/doc/start/test-do-login.png" alt="运行结果">
|
||||
|
||||

|
||||
<img src="/big-file/doc/start/test-is-login.png" alt="运行结果">
|
||||
|
||||
<!--
|
||||
### 普通Spring环境
|
||||
|
||||
@@ -155,10 +155,10 @@ public class UserController {
|
||||
|
||||
启动代码,从浏览器依次访问上述测试接口:
|
||||
|
||||

|
||||
<img src="/big-file/doc/start/test-do-login.png" alt="运行结果">
|
||||
|
||||
|
||||

|
||||
<img src="/big-file/doc/start/test-is-login.png" alt="运行结果">
|
||||
|
||||
|
||||
### 详细了解
|
||||
|
||||
@@ -197,9 +197,9 @@ class UserController {
|
||||
### 6、运行
|
||||
启动代码,从浏览器依次访问上述测试接口:
|
||||
|
||||

|
||||
<img src="/big-file/doc/start/test-do-login.png" alt="运行结果">
|
||||
|
||||

|
||||
<img src="/big-file/doc/start/test-is-login.png" alt="运行结果">
|
||||
|
||||
|
||||
**注意事项:**
|
||||
|
||||
@@ -254,6 +254,7 @@ body{
|
||||
/* 大屏幕时,某些图片限制一下宽度 */
|
||||
@media screen and (min-width: 800px) {
|
||||
[title=s-w],[title=s-w-sh]{max-width: 80%;}
|
||||
.s-w,.s-w-sh{ max-width: 80%; }
|
||||
}
|
||||
.s-w-sh, [title=s-w-sh]{display: inline-block; border: 1px #eee solid;}
|
||||
.w-100, [title=w-100]{display: inline-block; border: 1px #eee solid; max-width: 100%;}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
所谓踢人下线,核心操作就是找到指定 `loginId` 对应的 `Token`,并设置其失效。
|
||||
|
||||

|
||||
<img src="/big-file/doc/use/kickout.png" alt="踢下线">
|
||||
|
||||
---
|
||||
|
||||
@@ -27,7 +27,7 @@ StpUtil.kickoutByTokenValue("token"); // 将指定 Token 踢下线
|
||||
- 踢人下线不会清除Token信息,而是将其打上特定标记,再次访问会提示:Token已被踢下线。
|
||||
|
||||
|
||||
<button class="show-img" img-src="https://oss.dev33.cn/sa-token/doc/g/g3--kickout.gif">加载动态演示图</button>
|
||||
<button class="show-img" img-src="/big-file/doc/use/g3--kickout.gif">加载动态演示图</button>
|
||||
|
||||
|
||||
### 3、顶人下线
|
||||
|
||||
@@ -66,7 +66,7 @@ public SaResult doLogin(String name, String pwd) {
|
||||
>
|
||||
> 在浏览器打开 f12 控制台,即可看到被注入的 Cookie 值:
|
||||
>
|
||||
> <button class="show-img" img-src="https://oss.dev33.cn/sa-token/doc/use/sa-login-cookie-pre.png">加载演示图</button>
|
||||
> <button class="show-img" img-src="/big-file/doc/use/sa-login-cookie-pre.png">加载演示图</button>
|
||||
|
||||
|
||||
### 2、校验是否登录
|
||||
@@ -78,7 +78,7 @@ public SaResult doLogin(String name, String pwd) {
|
||||
|
||||
<img class="w-100" src="/big-file/doc/use/use-login-check.svg" />
|
||||
|
||||
<!-- <button class="show-img" img-src="https://oss.dev33.cn/sa-token/doc/g/g3--login-auth.gif">加载动态演示图</button> -->
|
||||
<!-- <button class="show-img" img-src="/big-file/doc/use/g3--login-auth.gif">加载动态演示图</button> -->
|
||||
|
||||
使用以下方法判断当前会话是否已登录:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user