摘要: 1.路由跳转及传参 import { withRouter, RouteComponentProps } from 'react-router'; class ReplenishmentOrder extends Component< TProps & RouteComponentProps, TS 阅读全文
posted @ 2023-08-18 14:24 丶乔 阅读(29) 评论(0) 推荐(0)
摘要: request import axios from 'axios' import { MessageBox, Message } from 'element-ui' import store from '@/store' import { getToken, getzyToken } from '@ 阅读全文
posted @ 2023-08-18 14:03 丶乔 阅读(27) 评论(0) 推荐(0)
摘要: //需要项目后台提供上传接口uploadFile 下载接口FILE_URL: Object.defineProperties(Vue.prototype, { FILE_URL: { value: function (fileId) { if (!fileId) { return } return 阅读全文
posted @ 2023-08-18 12:08 丶乔 阅读(164) 评论(0) 推荐(0)
摘要: 源码 <template> <div class="c__filter" :style="`height: ${showFilter ? 'auto' : '47px'}`" v-if="filterNum > 0" ref="tableFilter" > <div class="c_filter_ 阅读全文
posted @ 2023-08-18 11:59 丶乔 阅读(148) 评论(0) 推荐(0)
摘要: 1.uniapp https://ask.dcloud.net.cn/article/36286 1.1request ********url文件************** // 开发环境 const dev = "wxapp.chuntaoyisheng.com/"; // 测试环境 const 阅读全文
posted @ 2023-08-18 11:53 丶乔 阅读(300) 评论(0) 推荐(0)
摘要: 1.本地代理 uni编写的h5为例 //例 devServer: { proxy: { '/API': { // 定义代理的名称 changeOrigin: true, // 是否启动代理 target: 'http://xijipan.dev.grdoc.org', // 代理的域名 pathRe 阅读全文
posted @ 2023-08-18 11:52 丶乔 阅读(52) 评论(0) 推荐(0)
摘要: <template> <div> <div class="video"> <video></video> </div> </div> </template> <script> export default { mounted() { this.playVideo() }, methods: { pl 阅读全文
posted @ 2023-08-18 11:50 丶乔 阅读(94) 评论(0) 推荐(0)
摘要: 1.全局修改定义message提示信息 //大写的Message是个构造函数 //1是重新定义构造函数来挂载到原型覆盖原来的。 //2是直接引入Message重新定义它的原型方法。 import Element,{ Message } from 'element-ui' const message 阅读全文
posted @ 2023-08-17 15:47 丶乔 阅读(97) 评论(0) 推荐(0)
摘要: 官方文档( 中文版 ):https://vue3js.cn/docs/zh/ 视频:https://www.qiuzhi99.com/movies/vue3/1330.html 语法对比:https://www.jianshu.com/p/4e7ba9e93402 与2.x区别对比 1. vue2和 阅读全文
posted @ 2023-08-17 15:46 丶乔 阅读(55) 评论(0) 推荐(0)
摘要: 1.内置组件component 渲染一个“元组件”为动态组件。依 is 的值,来决定哪个组件被渲染。 vue内置组件 <template> <component :is="viewName" @updateView="updateView" > </component> </template> <s 阅读全文
posted @ 2023-08-17 15:45 丶乔 阅读(39) 评论(0) 推荐(0)