diff --git a/Colorui-UniApp/colorui/components/cu-custom.vue b/Colorui-UniApp/colorui/components/cu-custom.vue index b09f70d..a4e1773 100755 --- a/Colorui-UniApp/colorui/components/cu-custom.vue +++ b/Colorui-UniApp/colorui/components/cu-custom.vue @@ -52,6 +52,10 @@ }, methods: { BackPage() { + if (getCurrentPages().length < 2 && 'undefined' !== typeof __wxConfig) { + let url = '/' + __wxConfig.pages[0] + return uni.redirectTo({url}) + } uni.navigateBack({ delta: 1 });