@@ -10,7 +10,7 @@
</div>
<div class="header_right">
- <div class="helper"><button>教学助手</button></div>
+ <div class="helper" ><button @click="tologin">教学助手</button></div>
@@ -26,7 +26,12 @@
{ "id": 4, "name": '活动', "url": '/activity' },
],
}
- }
+ },
+ methods: {
+ tologin: function () {
+ this.$router.push({ path: '/login' })
+ }
</script>
<style scoped>