百度
上一页 1 2 3 4 5 6 7 8 ··· 51 下一页
摘要: 很多情况下,我们在执行点击按钮跳转页面之前还会执行一系列方法,这时可以使用 this.$router.push(location) 来修改 url,完成跳转。 push 后面可以是对象,也可以是字符串: // 字符串this.$router.push('/home/first')// 对象 quer 阅读全文
posted @ 2022-01-02 16:28 麦克斯-侯 阅读(1796) 评论(0) 推荐(0)
摘要: <el-table-column label="操作" width="100"> <template v-slot="scope"> //把父标签的内容传递到方法内 <el-button size="small" @click="edit(scope.row)">修改</el-button> </t 阅读全文
posted @ 2022-01-02 16:24 麦克斯-侯 阅读(1956) 评论(0) 推荐(1)
摘要: <el-table @row-click="openDetails"> </el-table> //对应的 methods 中 //点击行事件 methods: { openDetails (row) { this.$router.push("/home/index/" +row.userId); 阅读全文
posted @ 2022-01-01 16:36 麦克斯-侯 阅读(392) 评论(0) 推荐(0)
摘要: <script lang="ts"> import {defineComponent} from 'vue';//导入defineComponent函数可以对使用$data调用data里的变量 import axios from "axios";//导入axios 可直接使用axios export 阅读全文
posted @ 2022-01-01 14:28 麦克斯-侯 阅读(796) 评论(0) 推荐(0)
摘要: // main.ts import { createApp } from 'vue' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' import App from './App.vue' con 阅读全文
posted @ 2021-12-31 21:37 麦克斯-侯 阅读(65) 评论(0) 推荐(0)
摘要: vue add typescript 阅读全文
posted @ 2021-12-31 21:36 麦克斯-侯 阅读(369) 评论(0) 推荐(0)
摘要: 执行命令 cnpm install element-plus --save 阅读全文
posted @ 2021-12-31 21:32 麦克斯-侯 阅读(29) 评论(0) 推荐(0)
摘要: vue create name 阅读全文
posted @ 2021-12-31 21:27 麦克斯-侯 阅读(33) 评论(0) 推荐(0)
摘要: 找到user/admin/.npmrc文件删除后,重新执行:$ npm --registry=https://registry.npm.taobao.org install cnpm -g 阅读全文
posted @ 2021-12-30 13:11 麦克斯-侯 阅读(111) 评论(0) 推荐(0)
摘要: <td><button v-on:click="delete2(site.unit_id)" :data-id="site.unit_id">删除</button></td> 表单使用data-id参数可以获取id参数,然后通过v-on:click="delete2(site.unit_id)方法可 阅读全文
posted @ 2021-12-21 14:29 麦克斯-侯 阅读(483) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 51 下一页
百度