|
@@ -232,6 +232,13 @@ Page({
|
|
|
// return;
|
|
|
// }
|
|
|
let _imgTopPic = _this.data._imgTopPic ?? ""
|
|
|
+ if (_imgTopPic.length == 0) {
|
|
|
+ wx.showToast({
|
|
|
+ title: '壁纸不能为空',
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (_imgTopPic.startsWith("http")) {
|
|
|
// 服务器的走下载图片
|
|
|
console.log("服务器的走下载图片", _this.data._imgTopPic)
|