feat: 解决报错

This commit is contained in:
yangzhe 2025-04-10 14:40:35 +08:00
parent 5537a69779
commit bd5534280a
3 changed files with 8 additions and 2 deletions

View File

@ -19,7 +19,7 @@
{ {
"path": "pages/index/list", "path": "pages/index/list",
"style": { "style": {
"navigationBarTitleText": "保洁点位" "navigationBarTitleText": "异常上报"
} }
}, },
{ {

View File

@ -191,6 +191,9 @@ export default {
// //
uploadFn() { uploadFn() {
console.log("%c%s", "color:red", "上传图片"); console.log("%c%s", "color:red", "上传图片");
//
this.successShow = false;
uni.navigateTo({ uni.navigateTo({
url: "/pages/index/uploadPhoto", url: "/pages/index/uploadPhoto",
}); });
@ -198,6 +201,9 @@ export default {
// //
exceptionReportFn() { exceptionReportFn() {
console.log("%c%s", "color:red", "异常上报"); console.log("%c%s", "color:red", "异常上报");
//
this.errorShow = false;
uni.navigateTo({ uni.navigateTo({
url: "/pages/index/list", url: "/pages/index/list",
}); });

View File

@ -52,7 +52,7 @@
</view> </view>
<!-- 提交按钮 --> <!-- 提交按钮 -->
<u-button @click="submitForm" customStyle="margin-top: 40rpx" type="primary" <u-button @click="submitForm" style="margin-top: 40rpx" type="primary"
>保存</u-button >保存</u-button
> >
</view> </view>