Merge branch 'master' of http://git.luyuan.tk/luyuan/beelink into zj
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<div class="takehour" v-if="i.status == 1 && livestatus == 2">
|
||||
{{lan.$t('canjiashichang')}}
|
||||
<div>30min</div>
|
||||
<div>{{i.length}}min</div>
|
||||
</div>
|
||||
<div
|
||||
class="cancel"
|
||||
|
||||
@@ -115,8 +115,10 @@
|
||||
}
|
||||
</style>
|
||||
<script lang="ts">
|
||||
import { setToken } from '@/api/base';
|
||||
import router from '@/router';
|
||||
import store from '@/store';
|
||||
import { saveValue } from '@/utils/common';
|
||||
import { useI18n } from '@/utils/i18n';
|
||||
import { computed, defineComponent, ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
@@ -200,6 +202,8 @@ export default defineComponent({
|
||||
|
||||
function logout(): void{
|
||||
store.commit("login", false)
|
||||
saveValue("token", "");
|
||||
setToken();
|
||||
router.replace("/");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user