摘要: +在旧页面要跳转的地方 goHome() { window.location.href = "http://xxxxxxxxxxxxxxxxxxx/?token=" + localStorage.getItem("token") + "&username=" + localStorage.getIt 阅读全文
posted @ 2022-11-07 17:42 zongkm 阅读(17) 评论(0) 推荐(0)
摘要: 先写一下api里面的js吧 一般post的就是存一些数据给接口,接口本身可能也有数据 一般get的就是通过关键字,拿接口里面的数据 ####我看见的文本 js里面 因为需要把数据给接口,所以data:data 可以简写成data export function changePassword(data 阅读全文
posted @ 2022-11-07 17:26 zongkm 阅读(50) 评论(0) 推荐(0)
摘要: 1.js文件 import Vue from "vue"; const EventBus = new Vue(); export default EventBus; 接受传值的地方 import EventBus from "../utils/event-bus"; EventBus.$on("re 阅读全文
posted @ 2022-11-07 16:31 zongkm 阅读(18) 评论(0) 推荐(0)
摘要: 1 最普通的 scopedSlots: { customRender: "currency" }, align: "center", <template slot="currency" slot-scope="text"> <div v-if="text"> <div>{{ text }}</div 阅读全文
posted @ 2022-11-07 10:26 zongkm 阅读(16) 评论(0) 推荐(0)