This website works better with JavaScript.
首頁
說明
登入
heuzef
/
pinry
镜像来自
https://github.com/pinry/pinry.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
44
Wiki
Activity
瀏覽代碼
Fix: Use refresh for logout
pull/169/head
winkidney
5 年之前
committed by
Isaac Bythewood
父節點
602ca97d00
當前提交
d5a0260d51
共有
2 個文件被更改
,包括
2 次插入
和
2 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
pinry-spa/src/components/PHeader.vue
+1
-1
pinry-spa/src/components/api.js
+ 1
- 1
pinry-spa/src/components/PHeader.vue
查看文件
@@ -105,7 +105,7 @@ export default {
logOut() {
api.User.logOut().then(
() => {
this.$router.push('/'
);
window.location.reload(
);
},
);
},
+ 1
- 1
pinry-spa/src/components/api.js
查看文件
@@ -39,7 +39,7 @@ const User = {
const self = this;
return new Promise(
(resolve) => {
axios.get('/api-auth/logout/
?next=/api/v2/
').then(
axios.get('/api-auth/logout/').then(
() => {
storage.set(self.storageKey, null, 1);
resolve();
Write
Preview
Loading…
取消
儲存