摘要:
要点:1、async、await 结合promise一起使用 1、async应该要放在第一个异步函数的then回调里 then(async(res) => {}) 2、需要await的函数,采用new Promise(resolve,reject)的resolve(res)将执行结果传递出去 3、需 阅读全文
摘要:
要点:this.$router.resolve window.open(routeOne.href, '_blank') 如: watch:{ //监听页面快捷菜单跳转 如待办任务点击更多 等 routeObj(val){ //切换菜单 this.switchApp(val.code) //跳转对应 阅读全文
摘要:
预览已经上传的图片要点: window.URL.createObjectURL(new Blob([res])) 上传图片的要点: const formData = new FormData() formData.append('file', file.file) 完整案例:1、预览图片: <a-f 阅读全文
摘要:
方法:通过作用域插槽,根据图片id,动态解析图片地址 完整案例: tableCom组件: <a-table :rowKey="(record,index)=>{return index}" :columns="columns" :data-source="data" :pagination="pag 阅读全文