瀏覽代碼

Fix: Use refresh for logout

pull/169/head
winkidney 5 年之前
committed by Isaac Bythewood
父節點
當前提交
d5a0260d51
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      pinry-spa/src/components/PHeader.vue
  2. +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();


Loading…
取消
儲存