This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const blob = new Blob([res.data], { | |
type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | |
// 文件格式 | |
}) | |
if ('download' in document.createElement('a')) { // 非IE下载 | |
const elink = document.createElement('a') | |
elink.download = 'markone' | |
elink.style.display = 'none' | |
elink.href = URL.createObjectURL(blob) | |
document.body.appendChild(elink) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"children": [ | |
{ | |
"hidden": true, | |
"path": "/", | |
"redirect": "/dashboard" | |
}, | |
{ | |
"component": "dashboard/index", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const baseURL = process.env.NODE_ENV === 'production' | |
? '/api/' | |
: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import { baseURL } from '@/config' | |
class HttpRequest { | |
constructor (baseUrl = baseURL) { | |
this.baseUrl = baseUrl | |
this.queue = {} | |
} | |
getInsideConfig () { | |
const config = { |