Explorar el Código

跳转小程序13

zhangyujun hace 3 años
padre
commit
2152b63376
Se han modificado 1 ficheros con 1 adiciones y 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 = {