摘要: 难点1:怎么在自己小程序拿到其他小程序短链难点2:怎么通过短链生成二维码难点3:怎么通过短链 点击自动打开第三方小程序的某个页面难点4:不是通过右上角的三个点触发 而是自己点击按钮进行触发分享难点5:引入第三方插件难点6:base64转小程序本地图片难点7:分享本地图片给微信好友附完整代码: <te 阅读全文
posted @ 2024-04-07 11:09 阿蒙不萌 阅读(3) 评论(0) 推荐(0) 编辑
摘要: addRoute已经执行了,路由表也更新了,但是就是不生效 使用了各种方式都没有用 next({...to,replace:true}) 会死循环 next()不生效 后来改成 router.push(to) 就好了 参考: https://blog.csdn.net/bittingCat/arti 阅读全文
posted @ 2023-06-21 18:11 阿蒙不萌 阅读(429) 评论(1) 推荐(0) 编辑
摘要: 内容:权限在新增人员时候选择传给后端并且编辑回显 坑: 1.传给后端的权限数组需要传父级id 例如:一级目录下有二级目录和2-2目录,选了2-2目录,需要把一级目录的id也给后端 2.回显的时候后端会把权限数组id都给你(包括一级目录),如果直接回显的话会默认一级下所有目录都选中 代码参考 <el- 阅读全文
posted @ 2023-06-20 13:14 阿蒙不萌 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 解决方式:https://zhuanlan.zhihu.com/p/349595729 阅读全文
posted @ 2023-06-03 15:43 阿蒙不萌 阅读(1625) 评论(0) 推荐(1) 编辑
摘要: uni.navigateTo({ url: '/pagesSub/my/webview?url='+encodeURIComponent('地址') }) 新创建一个页面: <template> <web-view :src="url"></web-view> </template> <script 阅读全文
posted @ 2023-05-19 10:00 阿蒙不萌 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 场景:tabbar页面是展示一个列表,页面中有一个搜索按钮,点击按钮进入搜索页面,输入字段以后返回tabbar页面展示相应的搜索结果,切换tabbar页面后搜索条件置空 方案1:使用navigateTo 跳转传值 坑1:因为搜索页要跳转的是tabbar页面,不能直接使用navigateTo 跳转,只 阅读全文
posted @ 2023-04-22 13:15 阿蒙不萌 阅读(420) 评论(0) 推荐(0) 编辑
摘要: import * as React from 'react'; import styles from './VideoEdit.module.scss'; import { IVideoEditProps } from './IVideoEditProps'; import { Button, Fo 阅读全文
posted @ 2023-01-09 16:34 阿蒙不萌 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 需求:一个业务需要把一个在线地址回显 var img = "https://ts3.cn.mm.bing.net/th?id=OIP-C.owpbNjuu23xkyc4yrX9BDQHaEo&w=316&h=197&c=8&rs=1&qlt=90&o=6&dpr=1.5&pid=3.1&rm=2"; 阅读全文
posted @ 2023-01-04 16:07 阿蒙不萌 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 需求: 进入页面请求接口,把这个值渲染到表单中的input上 const [indicators, setIndicators] = useState<any>({}) const [form] = Form.useForm(); useEffect(() => { form.setFieldsVa 阅读全文
posted @ 2023-01-04 14:51 阿蒙不萌 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一:使用npx命令创建 临时下载脚手架 项目成功后自动删除 不占用空间 不担心版本低1.运行命令:npx create-react-app demo2.cd 到创建的目录下cd demo3.根据package.json中的命令来运行 npm run start run是可以不写的 二:点击终端的分栏 阅读全文
posted @ 2022-11-18 09:46 阿蒙不萌 阅读(37) 评论(0) 推荐(0) 编辑