Commit eeff1884 authored by salitedfish's avatar salitedfish

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

parent 0382dc17
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<script lang="ts"> <script lang="ts">
import Vue from "vue"; import Vue from "vue";
import { Overlay } from "vant"; import { Overlay } from "vant";
// import { token } from '@/util/userInfoUtils' import { token } from '@/util/userInfoUtils'
Vue.use(Overlay); Vue.use(Overlay);
export default Vue.extend({ export default Vue.extend({
components: { components: {
...@@ -73,6 +73,11 @@ export default Vue.extend({ ...@@ -73,6 +73,11 @@ export default Vue.extend({
this.$store.commit('app/TOGGLE_OVERLAY') this.$store.commit('app/TOGGLE_OVERLAY')
}, },
goNTF(obj:{url:string,id:string} ){ goNTF(obj:{url:string,id:string} ){
if(!token.getToken()){
this.$router.push('/auth/login')
this.closeNFT()
return
}
this.$router.push({ this.$router.push({
name:obj.url, name:obj.url,
query:{ 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