上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: npm install file-saver --savethis.$http.downFileApi(this.downForm).then((res) => { this.spinning = false; const blob = new Blob([res.data], { type: "a 阅读全文
posted @ 2022-12-01 14:14 Webwhl 阅读(505) 评论(0) 推荐(0)
摘要: <template> <a-breadcrumb separator="/"> <a-breadcrumb-item v-for="item in breadList" :key="item.path" :href="item.path" > <a :href="item.path"> {{ ite 阅读全文
posted @ 2022-12-01 14:07 Webwhl 阅读(94) 评论(0) 推荐(0)
摘要: https://nodejs.org/zh-cn/download/releases/ 阅读全文
posted @ 2022-11-11 11:47 Webwhl 阅读(43) 评论(0) 推荐(0)
摘要: react react-router-dom v6 移除了 <NavLink> 的 activeClassName 属性改为: import { NavLink } from 'react-router-dom'; function App() { return ( <> { /* classNam 阅读全文
posted @ 2022-11-07 10:22 Webwhl 阅读(134) 评论(0) 推荐(0)
摘要: 做消息推送有提示音。 由于google默认不播放音频,除非有鼠标,键盘事件触发才播放,所以给页面头部加了一个按钮是否打开消息提示音。触发后开启音频调用音频方法。(当你打开一次音频后,后面消息推送过来在播放音频是可以的) vue中<audio controls ref="audio" src="../ 阅读全文
posted @ 2022-10-12 18:29 Webwhl 阅读(123) 评论(0) 推荐(0)
摘要: <template> <div> <quill-editor v-model="formData.content" ref="QuillEditor" class="editor" :options="editorOption" @blur="onEditorBlur($event)" @focus 阅读全文
posted @ 2022-08-11 10:11 Webwhl 阅读(445) 评论(0) 推荐(0)
摘要: vue-cli3 public文件创建static文件保存wordaxios({ method: 'get', responseType: 'blob', url: 'static/json/sm.doc' // word在static文件下 }).then(res=> { console.log( 阅读全文
posted @ 2022-06-21 16:08 Webwhl 阅读(454) 评论(0) 推荐(0)
摘要: import Vue from 'vue' import VueRouter from 'vue-router' import Home from '../views/Home.vue' import { getCurrentInfo } from '../service/getData' Vue. 阅读全文
posted @ 2022-04-20 16:21 Webwhl 阅读(167) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-04-11 18:04 Webwhl 阅读(623) 评论(0) 推荐(0)
摘要: <son v-for="(item, index) in data" :key="index" :ref="item.ref" /> // 子组件加上key值, 调用加上对应的下标,如果还不行加上setTimeout. this.$refs.refSon[index].init() //refSon 阅读全文
posted @ 2021-12-13 11:57 Webwhl 阅读(82) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 13 下一页