cxmo há 6 meses atrás
pai
commit
710d7c9258
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/views/dataEntry_manage/components/insertData.vue

+ 2 - 2
src/views/dataEntry_manage/components/insertData.vue

@@ -21,7 +21,7 @@
       <dataLoading :loading="isLoading"/>
       
       <div class="download-ico">
-        <a :href="downloadTemplate" download="模板">
+        <a :href="`${downloadTemplate}${$i18nt.locale==='zh'?'':'/en'}`" download="模板">
           <i class="icon down_ico"></i>
           <span style="color: #5882ef; cursor: pointer">{{$t('ManualEntryPage.down_tem')}}</span>
         </a>
@@ -80,7 +80,7 @@ export default {
   data() {
     return {
       action: process.env.VUE_APP_API_ROOT + "/entry/import/data", //上传文件
-      downloadTemplate: process.env.VUE_APP_API_ROOT + "/entry/template" + this.$i18nt.locale==='zh'?'':'/en', //模板下载
+      downloadTemplate: process.env.VUE_APP_API_ROOT + "/entry/template", //模板下载
       downloadErrorlist:
         process.env.VUE_APP_API_ROOT +
         "/entry/import/failList" +