Commit 4852e23d authored by xinzhedeai's avatar xinzhedeai

fix: template name

parent 909a7349
...@@ -10,6 +10,6 @@ VUE_APP_BASE_API = '/prod-api' ...@@ -10,6 +10,6 @@ VUE_APP_BASE_API = '/prod-api'
# 正式环境 # 正式环境
# VUE_APP_BASE_URL = 'http://60.212.188.152:12100' # VUE_APP_BASE_URL = 'http://60.212.188.152:12100'
# 测试环境 # 测试环境
VUE_APP_BASE_URL = 'http://192.168.3.60:9090' VUE_APP_BASE_URL = 'http://192.168.3.226:9090'
...@@ -10,7 +10,7 @@ import { saveAs } from 'file-saver' ...@@ -10,7 +10,7 @@ import { saveAs } from 'file-saver'
let downloadLoadingInstance; let downloadLoadingInstance;
// 是否显示重新登录 // 是否显示重新登录
export let isRelogin = { show: false }; export let isRelogin = { show: false };
document.cookie=`Admin-Token=${new URLSearchParams(window.location.search).get('Admin')}`; document.cookie=`Admin-Token=${new URLSearchParams(window.location.search).get('Admin')|| getToken('Admin')}`;
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例 // 创建axios实例
......
...@@ -371,7 +371,7 @@ export default { ...@@ -371,7 +371,7 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
exportExcl() { exportExcl() {
this.download('slope/plan/export/model', { this.download('slope/plan/export/model', {
}, `checkplan_${new Date().getTime()}.xlsx`) }, `巡检计划导入模板.xlsx`)
}, },
// exportExcl() { // exportExcl() {
// exportModel().then((res) => { // exportModel().then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment