保存二维码

This commit is contained in:
Jason 2022-09-16 18:15:41 +08:00
parent 855f6ca3e6
commit 117584acba
3 changed files with 8 additions and 4 deletions

View File

@ -19,7 +19,11 @@
<!-- #endif -->
</view>
<view class="mt-[100rpx] w-full">
<u-button type="primary" shape="circle" @click="saveImageToPhotosAlbum(content.qrcode)">
<u-button
type="primary"
shape="circle"
@click="saveImageToPhotosAlbum(getImageUrl(content.qrcode))"
>
保存二维码图片
</u-button>
</view>

View File

@ -38,7 +38,8 @@ const handleChange = (index: number) => {
}
const getData = async () => {
tabList.value = await getArticleCate()
const data = await getArticleCate()
tabList.value = [{ name: '全部', id: 0 }].concat(data)
}
onLoad((options) => {

View File

@ -1,11 +1,10 @@
import { isDevMode } from '@/utils/env'
// #ifdef H5
// 提交前需要注释 本地调试使用
import Vconsole from 'vconsole'
import { isDevMode } from '@/utils/env'
// #endif
export default () => {
isDevMode
// #ifdef H5
if (isDevMode()) {
const vConsole = new Vconsole()