|
|
|
|
@ -5,14 +5,17 @@ import { ref } from 'vue'
|
|
|
|
|
import { useTestStore } from '@/store/test'
|
|
|
|
|
const store = useTestStore()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 改变store里面count的值
|
|
|
|
|
const addBtn =() =>{
|
|
|
|
|
store.count++
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<h1>测试路由搭载是否成功,不需要msg</h1>
|
|
|
|
|
<h1>测试Element-plus是否引入成功</h1>
|
|
|
|
|
<div class="mb-4">
|
|
|
|
|
<el-button>Default</el-button>
|
|
|
|
|
<el-button @click="addBtn">+</el-button>
|
|
|
|
|
<div>
|
|
|
|
|
<h1>测试store是否引入成功</h1>
|
|
|
|
|
{{ store.count }}
|
|
|
|
|
|