Ver código fonte

跳转小程序13

zhangyujun 3 anos atrás
pai
commit
2152b63376
1 arquivos alterados com 1 adições e 1 exclusões
  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 = {