Explorar o código

跳转小程序13

zhangyujun %!s(int64=3) %!d(string=hai) anos
pai
achega
2152b63376
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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),
+				url: encodeURIComponent(window.location.href.split('#')[0]),
 			})
 			.then((res) => {
 				let wxConfig = {