Commit f52e6859 by liang ce

配置问题修改Token修改

parent feba5e9c
import axios from 'axios' import axios from 'axios'
import qs from 'qs'
// axios.defaults.baseURL = 'http://192.168.1.193:8300' // 本地荣 // axios.defaults.baseURL = 'http://192.168.1.193:8300' // 本地荣
// axios.defaults.baseURL = 'http://192.168.1.174:8300' // 本地钱 // axios.defaults.baseURL = 'http://192.168.1.174:8300' // 本地钱
axios.defaults.baseURL = 'http://139.196.213.18:8300' // beta环境 axios.defaults.baseURL = 'http://139.196.213.18:8300' // beta环境
let loadingInstance // 创建Loading 的实例 let loadingInstance // 创建Loading 的实例
// axios.defaults.headers.post['Content-Type'] = 'application/json; charset=utf-8' axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
// axios.defaults.crossDomain = true // axios.defaults.crossDomain = true
// axios.defaults.withCredentials = true // 设置cross跨域 并设置访问权限 允许跨域携带cookie信息 // axios.defaults.withCredentials = true // 设置cross跨域 并设置访问权限 允许跨域携带cookie信息
axios.defaults.headers['Authorization'] = `Bearer ${sessionStorage.getItem('token')}` // 设置请求头为 Authorization axios.defaults.headers['Authorization'] = `Bearer ${sessionStorage.getItem('token')}` // 设置请求头为 Authorization
......
const MINGPAY_CONSTANT = { const MINGPAY_CONSTANT = {
MINGPAY_CONSTANT_URL: 'http://mingpay-web-beta.mingwork.com:8888/', MINGPAY_CONSTANT_URL: 'http://mingpay-web-beta.mingwork.com:8888/',
// MINGPAY_CONSTANT_URL: 'http://ming.vaiwan.com/',
MINGPAY_CONSTANT_AGENTID: 270198704, MINGPAY_CONSTANT_AGENTID: 270198704,
MINGPAY_CONSTANT_VERSION: 'v1' MINGPAY_CONSTANT_VERSION: 'v1'
} }
......
<template> <template>
<div class="Dashboard"> <div class="Dashboard">
<a-layout style="padding: 24px 0; background: #fff"> <a-layout style="padding: 24px 0; background: #fff">
<h1>默认入口页面</h1> <h1>默认入123123口页面</h1>
</a-layout> </a-layout>
</div> </div>
</template> </template>
......
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