Переглянути джерело

跟进动态应用标签来源调整

qymljy 3 місяців тому
батько
коміт
b64286c912

+ 1 - 8
src/components/normal-basic-layout/details/modules/followUp/addLog.vue

@@ -129,14 +129,7 @@ export default {
     submitLog () {
       this.$refs.form.validate(async (valid)=>{
         if (!valid) return false
-        let resource = ''
-        if (this.$route.path == '/projectChangeDetail'){
-          resource = '项目商机'
-        }else if (this.$route.path == '/customerDetail'){
-          resource = '我的客户'
-        }else if (this.$route.path == 'PublicCustomerDetail'){
-          resource = '公海客户'
-        }
+        let resource = this.$route.matched[1].meta.title
         const res = await this.$api.requested({
           "id": 20220930121601,
           "content": {

+ 1 - 8
src/components/normal-basic-layout/details/modules/followUp/editLog.vue

@@ -125,14 +125,7 @@ export default {
      submitLog () {
       this.$refs.form.validate(async(valid)=>{
         if (!valid) return false
-        let resource = ''
-        if (this.$route.path == '/projectChangeDetail'){
-          resource = '项目商机'
-        }else if (this.$route.path == '/customerDetail'){
-          resource = '我的客户'
-        }else if (this.$route.path == 'PublicCustomerDetail'){
-          resource = '公海客户'
-        }
+        let resource = this.$route.matched[1].meta.title
         const res = await this.$api.requested({
           "id": 20220930121601,
           "content": {