瀏覽代碼

提交订单

panhui 4 年之前
父節點
當前提交
9108df6907
共有 1 個文件被更改,包括 2 次插入1 次删除
  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>
 </template>
 
 
 <script>
 <script>
+const path = require("path");
 export default {
 export default {
   name: "Submit",
   name: "Submit",
   inject: ["bs"],
   inject: ["bs"],
@@ -134,7 +135,7 @@ export default {
         .post("/order/create?collectionId=" + this.$route.query.id + "&qty=1")
         .post("/order/create?collectionId=" + this.$route.query.id + "&qty=1")
         .then((res) => {
         .then((res) => {
           document.location.replace(
           document.location.replace(
-            this.$baseUrl + "payOrder/alipay?id=" + res.id
+            path.resolve(this.$baseUrl, "payOrder/alipay?id=" + res.id)
           );
           );
         })
         })
         .catch((e) => {
         .catch((e) => {