上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 57 下一页
摘要: 原因在于validator或者default已经不能适用vue2的写法去编写,不然编译出来的TS很奇怪,打包成插件后引入并且传参的时候编译过程总会报类型不对的问题,后来看了下vue的官网,写法如下: 问题解决,编译后的样子: 阅读全文
posted @ 2021-12-30 14:51 洛晨随风 阅读(811) 评论(0) 推荐(0) 编辑
摘要: for await (let key of Object.keys(dict)) { //你的API let ret = await getApiData(comp, key); if (ret) { let tmpObj = { count: ret++, }; obj = tmpObj; } } 阅读全文
posted @ 2021-12-27 17:49 洛晨随风 阅读(40) 评论(0) 推荐(0) 编辑
摘要: import { defineConfig, UserConfigExport, ConfigEnv } from "vite"; import externalGlobals from "rollup-plugin-external-globals"; import vue from "@vite 阅读全文
posted @ 2021-12-18 12:06 洛晨随风 阅读(4910) 评论(0) 推荐(0) 编辑
摘要: slot: vue3推荐v-slot的写法,类似@和:v-slot也可以简化为#符号,demo如下: 子组件写法不变: <template> <div> hello: <slot name="fruits" :fruitsName="obj.name" :freshness="obj.freshne 阅读全文
posted @ 2021-12-16 14:58 洛晨随风 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 可能遇见的问题: react-jsx-dev-runtime.development.js:117 Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/functi 阅读全文
posted @ 2021-12-15 13:07 洛晨随风 阅读(780) 评论(0) 推荐(0) 编辑
摘要: const path = require("path"); const CopyPlugin = require("copy-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin"); // const Te 阅读全文
posted @ 2021-12-08 15:07 洛晨随风 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 谷歌在18年的时候禁止了自动播放音频的功能,这里我用的是 audio标签做播放,浏览器版本是chrome95 解决办法如图: 添加网站后,问题解决 阅读全文
posted @ 2021-11-18 18:43 洛晨随风 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 使用远程服务器调用本地JS启动摄像头的时候会出现跨域的问题,这里以海康摄像头为例如图: 解决(stackoverflow)办法如图: 地址:chrome://flags/#block-insecure-private-network-requests 实际配置 设置为disable时,问题解决 阅读全文
posted @ 2021-11-02 10:37 洛晨随风 阅读(459) 评论(0) 推荐(0) 编辑
摘要: server { listen 8081; //代理后的端口 server_name localhost;//代理后的地址 //代理的接口的关键名 location ~/api/issue-business-server{ proxy_pass http://192.168.110.39:1000; 阅读全文
posted @ 2021-10-26 10:51 洛晨随风 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 免费_当日或未来几日 k780:http://www.k780.com/api/weather.history 接口地址:http://api.k780.com:88/?app=weather.history&weaid=1&date=2015-07-20&appkey=10003&sign=b59 阅读全文
posted @ 2021-10-13 17:59 洛晨随风 阅读(1668) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 57 下一页