摘要: 首先安装axios npm install axios --save 在src下新建utils文件夹 再新建request.js文件 //utils->request.js import axios from 'axios' const requests = axios.create({ baseU 阅读全文
posted @ 2021-06-18 17:17 chicidol 阅读(47) 评论(0) 推荐(0)
摘要: 首先安装vue-router npm install vue-router --save 在src下新建router文件夹 再新建index.js文件 //router->index.js import Vue from 'vue' import VueRouter from 'vue-router 阅读全文
posted @ 2021-06-18 16:27 chicidol 阅读(85) 评论(0) 推荐(0)
摘要: 首先安装vuex npm install vuex --save 在src下新建store文件夹 再新建index.js、state.js、getters.js、mutations.js、mutations-types.js、actions.js文件 //index.js import Vue fr 阅读全文
posted @ 2021-06-18 15:30 chicidol 阅读(49) 评论(0) 推荐(0)
摘要: 安装node.js 查看版本node -v 安装vue3.0版本之前需要先把vue-cli升级到4.0版本, 如果之前安装过vue-cli需要把2.0相关的卸载之后重新安装,npm uni -g vue-cli, 如果没有安装过不需要卸载可以直接安装,npm i -g @vue/cli 查看版本vu 阅读全文
posted @ 2021-06-18 14:52 chicidol 阅读(66) 评论(0) 推荐(0)
摘要: //router.js { path: '/oppo-music', component: () => import('@/views/OppoMusic.vue'), meta: { title: 'OPPO音乐', keepAlive: true, }, name: 'OppoMusic', } 阅读全文
posted @ 2021-06-18 14:29 chicidol 阅读(266) 评论(0) 推荐(0)
摘要: <audio ref="audio"></audio> import CryptoJS from "crypto-js"; import Hls from 'hls.js'; methods:{ getHls (url) { if (Hls.isSupported()) { var hls = ne 阅读全文
posted @ 2021-06-18 13:56 chicidol 阅读(208) 评论(0) 推荐(0)
摘要: <div :style="{ color: activeColor, fontSize: fontSize + 'px' }"></div> data () { return { //初始样式 activeColor:'red', fontSize :30, }; }, //改变样式 this.ac 阅读全文
posted @ 2021-06-18 13:44 chicidol 阅读(242) 评论(0) 推荐(0)
摘要: 给设置overflow:hidden的元素设置position:fixed即可解决 阅读全文
posted @ 2021-06-18 13:38 chicidol 阅读(119) 评论(0) 推荐(0)