Browse Source

提交修改bug

zhangwf 5 năm trước cách đây
mục cha
commit
54a47bfa41
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      src/util/appConst.js
  2. 2 2
      src/views/cnctestlists/cncTestLists.vue

+ 1 - 1
src/util/appConst.js

@@ -5,7 +5,7 @@ let QINIU_DOMAIN = '';
 let DIAOYANBAO_PATH = '';
 if (process.env.NODE_ENV === 'test') {
   //测试
-  BACKEND_DOMAIN = 'http://gatewaytest.elab-plus.com/elab-diaoyanbao/'
+  BACKEND_DOMAIN = 'http://gatewaytest.elab-plus.com/elab-diaoyanbao/elab-diaoyanbao'
   QINIU_DOMAIN = 'https://gatewaytest.elab-plus.com'
   DIAOYANBAO_PATH = 'http://h5test.elab-plus.com/diaoyanbao/#/preview?mgid='
 } else if (process.env.NODE_ENV === 'development') {//开发

+ 2 - 2
src/views/cnctestlists/cncTestLists.vue

@@ -138,7 +138,7 @@ export default {
       let that = this;
       api.createTest(data).then(res => {
         if (res.success) {
-          that.$router.push({ path: "/h5editor", query: { itemId: res.id } });
+          that.$router.push({ path: "/h5editor", query: { itemId: res.id ,testcaseId:item.testcaseId} });
         }
       });
     }
@@ -147,4 +147,4 @@ export default {
 </script>
 <style lang="scss" scoped>
 @import "./cncTestLists.scss";
-</style>
+</style>