摘要: 全局安装 npm install http-server -g 然后运行 http-server 项目就起来了 阅读全文
posted @ 2021-04-06 15:07 宸泽岚 阅读(293) 评论(1) 推荐(0) 编辑
摘要: vuex有两种存储方式 commit 和dispatch commit属于同步操作 存储 this.$store.commit('存的名字',name) 取值 this.$store.state.存的名字 dispatch属于异步操作 存储 this.$store.dispatch('存的名字',n 阅读全文
posted @ 2021-01-20 10:48 宸泽岚 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 接手一项目, 发现路由跳转, 页面不调接口, 监听路由的变化, 发现会调接口, 但是这个页面复用性很高, 接口就会每点一次就多掉一次接口, 然后要性能优化, 这种方式不可取, 故而再找原因, 发现是因为页面做了缓存, 然后把缓存页面得那段代码删掉就可以了 阅读全文
posted @ 2020-12-22 13:15 宸泽岚 阅读(881) 评论(0) 推荐(0) 编辑
摘要: decodeURI() 函数可对 encodeURI() 函数编码过的 URI 进行解码。 用法: decodeURI(URIstring)注意事项 URIstring 必需。一个字符串,含有要解码的 URI 或其他要解码的文本。 阅读全文
posted @ 2020-12-17 22:16 宸泽岚 阅读(1204) 评论(0) 推荐(0) 编辑
摘要: // 基于准备好的dom,初始化echarts实例 let myChart = this.$echarts.init(document.getElementById("main")); // 指定图表的配置项和数据 let option = { // backgroundColor: "#000", 阅读全文
posted @ 2020-12-08 09:15 宸泽岚 阅读(286) 评论(0) 推荐(0) 编辑
摘要: <el-tooltip class="item" effect="dark" content="删除" placement="bottom"> <el-button @click="delUser([scope.row.id])" size="small" type="danger" :disabl 阅读全文
posted @ 2020-09-30 10:21 宸泽岚 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 打开cmd 输入ipconfig 找到ipv4 对应的IP地址 复制到vue项目中的config/index.js中的host 在npm run dev就可以把链接复制在手机上查看了 配置config.js里的根目录加. 路由要配置hash模式 阅读全文
posted @ 2020-06-12 14:21 宸泽岚 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 长话短说。挑几个经典的 首先要在项目中引入echarts,这个就不详细介绍了,直接进项目 拿这个官方实例说,想要的都在注释里面,可以看一下也可以自己配置,这些都在官方文档里都有 option = { title: { text: '某站点用户访问来源', subtext: '纯属虚构', left: 阅读全文
posted @ 2020-05-12 17:06 宸泽岚 阅读(1889) 评论(2) 推荐(0) 编辑
摘要: 其实很简单 控制 <map id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="14" controls="{{controls}}" bindcontroltap="controltap" markers="{{mar 阅读全文
posted @ 2020-02-18 19:58 宸泽岚 阅读(3338) 评论(0) 推荐(0) 编辑
摘要: 最近在做地图遇到的问题,要显示多边形 html <map id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="14" controls="{{controls}}" bindcontroltap="controltap" 阅读全文
posted @ 2020-02-10 13:28 宸泽岚 阅读(3048) 评论(0) 推荐(0) 编辑