09 2022 档案

摘要:使用Echarts插件的时候,多次加载会出现There is a chart instance already initialized on the dom.的警告, 解决办法: 在使用Echarts插件的方法外面定义一个全局变量(注意:一定得是全局变量),然后在插件使用的方法内,添加判断,调用eC 阅读全文
posted @ 2022-09-22 17:24 青幽草 阅读(95) 评论(0) 推荐(0) 编辑
摘要:vant-ui 扩展表单的完整的代码 <template> <div> <slot name="items"></slot> </div> </template> <script> /** * author:ronggang * email:suntework@163.com */ export d 阅读全文
posted @ 2022-09-19 16:39 青幽草 阅读(959) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css3-scanner</title> <style> .qr-scanner { position: relative; height: 200px; width: 200px 阅读全文
posted @ 2022-09-05 17:01 青幽草 阅读(638) 评论(0) 推荐(0) 编辑
摘要:<script setup > import { ref, reactive, toRefs } from 'vue' import { BrowserMultiFormatReader } from '@zxing/library'; import { Dialog, Notify } from 阅读全文
posted @ 2022-09-05 15:52 青幽草 阅读(3071) 评论(0) 推荐(1) 编辑
摘要:在单页应用中Vue项目集成Vuex也就足够基本使用了,但是刷新页面的时候数据都会被清空,在某些情况下,我们需要这些状态能保存下来,比如登录后的用户信息、AccessToken、主题配置等。 这里就需要vuex-persistedstate,他可以把数据保存到localStorage或者Cookie 阅读全文
posted @ 2022-09-01 11:19 青幽草 阅读(296) 评论(0) 推荐(0) 编辑

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