panhui 4 éve
szülő
commit
9108df6907
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      src/main/nine-space/src/views/Submit.vue

+ 2 - 1
src/main/nine-space/src/views/Submit.vue

@@ -68,6 +68,7 @@
 </template>
 
 <script>
+const path = require("path");
 export default {
   name: "Submit",
   inject: ["bs"],
@@ -134,7 +135,7 @@ export default {
         .post("/order/create?collectionId=" + this.$route.query.id + "&qty=1")
         .then((res) => {
           document.location.replace(
-            this.$baseUrl + "payOrder/alipay?id=" + res.id
+            path.resolve(this.$baseUrl, "payOrder/alipay?id=" + res.id)
           );
         })
         .catch((e) => {