摘要: getVerify() { let that = this; axios({ method: "GET", url: `http://192.168.7.61:3000/base/BaseApiService/createCaptchaCode?access_token=bjcenter`, res 阅读全文
posted @ 2022-06-24 15:35 1点 阅读(1718) 评论(0) 推荐(0) 编辑
摘要: docker pull star7th/showdoc 创建目录 mkdir /showdoc_data mkdir /showdoc_data/html chmod -R 777 /showdoc_data/ 启动showdoc容器 docker run -d --name showdoc_tes 阅读全文
posted @ 2021-06-16 21:42 1点 阅读(131) 评论(0) 推荐(0) 编辑
摘要: (1) 先上传项目到 git 记得不要把node_module 上传了 (2)登录服务器, 创建一个空文件夹 命名 例如 music_vue (3) 从远程克隆项目 先 npm install 再npm run build (4) 前端项目 注意不要用 history 路由 (5)如果在服务器创建了 阅读全文
posted @ 2021-06-13 17:12 1点 阅读(676) 评论(0) 推荐(0) 编辑
摘要: import storage from 'good-storage' function inertArray(arr, val, compare, maxLen) { const index = arr.findIndex(compare) if (index 0) { return } if (i 阅读全文
posted @ 2021-06-12 18:07 1点 阅读(168) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="search-input"> <i class="icon-search"></i> <input class="input-inner" v-model="query" :placeholder="placeholder" /> <i v-show=" 阅读全文
posted @ 2021-06-11 07:50 1点 阅读(167) 评论(0) 推荐(0) 编辑
摘要: export function shuffle(source) { const arr = source.slice() for (let i = 0; i < arr.length; i++) { const j = getRandomInt(i) swap(arr, i, j) } return 阅读全文
posted @ 2021-06-10 20:53 1点 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 自定义组件: <template> <div class="loading"> <div class="loading-content"> <img width="24" height="24" src="./loading.gif"> <p class="desc">{{title}}</p> < 阅读全文
posted @ 2021-06-08 20:06 1点 阅读(2222) 评论(0) 推荐(1) 编辑
摘要: #### Install npm install vue3-lazy -S #### 引入 main.js demo: import { createApp } from 'vue' import App from './app' import lazyPlugin from 'vue3-lazy' 阅读全文
posted @ 2021-06-07 22:07 1点 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 封装组件: <template> <div ref="rootRef"> <slot></slot> </div> </template> <script> import useScroll from './use-scroll' import { ref } from 'vue' export d 阅读全文
posted @ 2021-06-07 22:00 1点 阅读(321) 评论(0) 推荐(0) 编辑
摘要: * 数组元素交换位置 * @param {array} arr 数组 * @param {number} index1 添加项目的位置 * @param {number} index2 删除项目的位置 * index1和index2分别是两个数组的索引值,即是两个要交换元素位置的索引值,如1,5就是 阅读全文
posted @ 2021-06-07 16:30 1点 阅读(383) 评论(0) 推荐(0) 编辑