mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
42 lines
900 B
Vue
42 lines
900 B
Vue
<template>
|
|
<div v-if="show" class="common-guide">
|
|
<img :src="src" width="100%" />
|
|
<div>
|
|
<Button type="default" @click="show = false" size="large" >{{ $L('忍心拒绝') }}</Button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: 'GuidePage',
|
|
data() {
|
|
return {
|
|
show: false,
|
|
src: '',
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.src = $.apiUrl('../images/guide.png');
|
|
},
|
|
|
|
watch: {
|
|
'$route': {
|
|
handler(route) {
|
|
this.show = false;
|
|
if (navigator.userAgent.indexOf("MicroMessenger") === -1) {
|
|
return;
|
|
}
|
|
//
|
|
if (route.name == 'manage-project-invite') {
|
|
this.show = true;
|
|
}
|
|
},
|
|
immediate: true
|
|
},
|
|
}
|
|
};
|
|
</script>
|