Merge branch 'master' of http://git.luyuan.tk/luyuan/beelink into zj

This commit is contained in:
asd
2020-10-30 15:49:12 +08:00
8 changed files with 139 additions and 13 deletions

View File

@@ -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"

View File

@@ -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("/");
}