Skip to content

Instantly share code, notes, and snippets.

@liaooliver

liaooliver/App.vue

Created Jun 30, 2020
Embed
What would you like to do?
<template>
<div id="app">
// 建立一個按鈕,綁定 testGetVuex 事件
<button @click="testGetVuex()">測試 取得 Vuex 實體</button>
</div>
</template>
<script>
export default {
name: "App",
methods: {
testGetVuex() {
// 透過 testGetVuex 事件 來呼叫 Vuex
console.log(this.$store);
}
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.