Commit eeff1884 authored by salitedfish's avatar salitedfish

未登录点击剧本跳转到登录页

parent 0382dc17
......@@ -52,7 +52,7 @@
<script lang="ts">
import Vue from "vue";
import { Overlay } from "vant";
// import { token } from '@/util/userInfoUtils'
import { token } from '@/util/userInfoUtils'
Vue.use(Overlay);
export default Vue.extend({
components: {
......@@ -73,6 +73,11 @@ export default Vue.extend({
this.$store.commit('app/TOGGLE_OVERLAY')
},
goNTF(obj:{url:string,id:string} ){
if(!token.getToken()){
this.$router.push('/auth/login')
this.closeNFT()
return
}
this.$router.push({
name:obj.url,
query:{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment