03 2023 档案

摘要:目录结构 pages :存放页面 类似于src/views components :存放组件 类似于src/components static :存放静态页 类似于src/assets store :vuex状态树 类似于src/store nuxt.config.js :全局配置文件 类似于vue 阅读全文
posted @ 2023-03-30 13:07 罗砂 阅读(141) 评论(0) 推荐(0) 编辑
摘要:$nextTick 作用 :等Dom更新完以后再执行 // 等Dom更新完以后再执行 this.$nextTick(() => { var obj = new WxLogin({ id: "weixin", appid: "wx40d53ce23ac9781f",//appid固定写死 scope: 阅读全文
posted @ 2023-03-20 10:48 罗砂 阅读(84) 评论(0) 推荐(0) 编辑
摘要:var item = new Date(1659424247000).toLocaleString(); 阅读全文
posted @ 2023-03-10 10:54 罗砂 阅读(16) 评论(0) 推荐(0) 编辑
摘要:this.$router.push({ path:'/跳转的页面'}); 阅读全文
posted @ 2023-03-09 20:28 罗砂 阅读(12) 评论(0) 推荐(0) 编辑
摘要:面试试题系统管理 框架是ruoyi-ui 删除的接口请求可以使用post请求 或者 delete请求 post请求要把参数改成data export function topicDelete (data) { return request({ url: 'api/topic/delete', met 阅读全文
posted @ 2023-03-09 11:32 罗砂 阅读(36) 评论(0) 推荐(0) 编辑
摘要:如果是get请求参数就要写成 params export function topicList (params) { return request({ url: '/api/topic/list', method: 'get', params }) } 如果是post请求参数就要写成 data ex 阅读全文
posted @ 2023-03-09 10:57 罗砂 阅读(20) 评论(0) 推荐(0) 编辑
摘要:渲染出列表后使用 后端传来参数直接使用参数就行:questionName 使用参数 getList (questionName) { topicList({ page: this.page - 1, size: this.size, questionName: questionName }).the 阅读全文
posted @ 2023-03-09 09:11 罗砂 阅读(14) 评论(0) 推荐(0) 编辑
摘要:先上代码 <template> <div> <el-table :data="tableData.slice((page - 1) * limit, page * limit)" style="width: 100%"> <el-table-column prop="date" label="日期" 阅读全文
posted @ 2023-03-07 23:56 罗砂 阅读(44) 评论(0) 推荐(0) 编辑
摘要:this.接口转换的数组对象['要添加的名字'] = this.添加的数据名称 this.titleList['compare'] = this.compare 阅读全文
posted @ 2023-03-06 16:55 罗砂 阅读(11) 评论(0) 推荐(0) 编辑
摘要:把整个页面的html 的滚动条的宽改成0px就行了 html::-webkit-scrollbar { width: 0px; } 阅读全文
posted @ 2023-03-06 11:02 罗砂 阅读(29) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示