<template> <div class="hello2"> <p>测试vuex状态管理的组件</p> <input type="text" v-model="user_Info"> <el-button @click="changeInfo">按钮</el-button> <span class="text" v-text="`这是子组件内引入的状态:${info}`"></span> </div> </template> <script lang="ts" src="./test.ts"></script> <!-- Add "scoped" attribute to limit CSS to this component only --> <style scoped lang="less"> @import url("./test.less"); </style>