소스 검색

跳转小程序13

zhangyujun 3 년 전
부모
커밋
2152b63376
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 = {