Parcourir la source

跳转小程序14

zhangyujun il y a 3 ans
Parent
commit
b14d1caff5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/mini/index.vue

+ 1 - 1
src/views/mini/index.vue

@@ -17,7 +17,7 @@ export default defineComponent({
 	setup() {
 		openApi
 			.jspapi({
-				url: encodeURIComponent(window.location.href.split('#')[0]),
+				url: encodeURIComponent(window.location.href.split('#')[0]+'/'),
 			})
 			.then((res) => {
 				let wxConfig = {