uniapp uni-admin uni-push-admin 使用记录
uni-admin不知道哪里问题,如果先选择部署到阿里云再改到支付宝云就会一直不出现管理员注册的按钮 uni-push-admin上传后不显示菜单,这里必须要先从本地运行一次,连接本地函数,才能更新菜单 uni-push要到开发者中心绑定应用和服务空间 管理员首次重置密码后会把自己封禁,可以到数据库将status改为0 uni-push实现单推123456789101112131415161718192021222324252627'use strict';const token = '' // 自定一个tokenfunction uniPush(appId) { return uniCloud.getPushManager({ appId })}exports.main = async (event) => { console.log(event); let obj = JSON.parse(event.body) if (token != obj.tok...
win11 中文输入法 总是跳到中文解决办法
从语言和语言 语言和区域 中 添加语言 英语(美国) 右下角会出现一种英语输入,使用alt+shift切换 时间和语言 输入 高级键盘设置 输入语言热键 在输入语言之间 更改按键顺序 改为 ctrl+shift稍微更符合直觉
css tailwind 设置文本超过容器就显示省略号
应该在容器上加上min-w-0 示例: 123<view class="min-w-0 flex flex-col justify-between items-start box-border"> <text class="truncate">{{ item.talent.nickname }}</text></view> 原因:在这个弹性布局中min-width默认的属性值是auto,代表容器最小宽度随着内容调整,这显然不是我们需要的加上min-w-0就可以破坏这个默认值,代表最小宽度可以调整到0,于是子元素的省略号生效
git 统计当日代码变动行数
123git log --since="$(date +%Y-%m-%d\ 00:00:00)" --pretty=tformat: --numstat | \awk '{ add += $1; subs += $2; loc += $1 - $2 } END \{ printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' 需要在Linux或者gitbash里面执行
css定位 absolute 定位让元素偏移的方法
可以使用translate类似方法 1absolute translate-x-12 -translate-y-7
docker 清理无用数据
1sudo system prune --all --volumes
全国互联网安全管理服务平台-安全评估
网站地址https://beian.mps.gov.cn/#/ 这个地址登录后会跳转到另一个关于各种备案的网站,所以找不到 只需要重新打开以上地址,他就可以自动登录
安卓开发
Android Studio修改gradle地址 1grade\wrapper\gradle-wrapper.properties 重新定义distributionUrl即可https://mirrors.cloud.tencent.com/gradle/gradle-8.13-bin.zip,然后重新sync gradle project即可 修改gradle依赖地址https://blog.csdn.net/ZLGSPACE/article/details/143265058
上架 iOS app
大图标不能使用带有alpha通道的pnghttps://uniapp.dcloud.net.cn/tutorial/app-icons.html#itms90717 123456789pip install -i https://mirrors.aliyun.com/pypi/simple/ pillowfrom PIL import Image# 打开PNG图片img = Image.open("image.png")# 转换为RGB模式,去除Alpha通道rgb_img = img.convert("RGB")# 保存新的图片rgb_img.save("image_no_alpha.png")
iOS uniapp 分享到微信无图片
经过测试,必须使用png文件