clay : 修改接口
This commit is contained in:
parent
5f50164e5e
commit
676b14e29a
|
|
@ -9,9 +9,17 @@ export function deleteFile(fileId) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getProcessListener(type){
|
export function getProcessListener(type) {
|
||||||
return request({
|
return request({
|
||||||
url: `/flowable/process/listener/option/${type}`,
|
url: `/flowable/process/listener/option/${type}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function login(param) {
|
||||||
|
return request({
|
||||||
|
url: "/auth/workflow/login",
|
||||||
|
method: "post",
|
||||||
|
data: param
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,10 @@ import "element-ui/lib/theme-chalk/index.css";
|
||||||
// 字体图标
|
// 字体图标
|
||||||
|
|
||||||
export function getBaseUrl(){
|
export function getBaseUrl(){
|
||||||
return "http://gateway.feashow.cn"
|
// return "http://gateway.feashow.cn"
|
||||||
// return "http://192.168.101.8:8000"
|
// return "http://192.168.101.7:8000"
|
||||||
// return "http://localhost:8000"
|
// return "http://localhost:8000"
|
||||||
|
return "/api";
|
||||||
}
|
}
|
||||||
|
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import axios from "axios";
|
|
||||||
import UserPicker from "../components/common/UserPicker";
|
import UserPicker from "../components/common/UserPicker";
|
||||||
|
import {login} from '../api/common'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Index",
|
name: "Index",
|
||||||
|
|
@ -59,18 +59,14 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
getToken() {
|
getToken() {
|
||||||
localStorage.clear()
|
localStorage.clear()
|
||||||
axios.post(
|
login({
|
||||||
"http://gateway.feashow.cn/auth/workflow/login",
|
|
||||||
// "http://localhost:8000/auth/workflow/login",
|
|
||||||
{
|
|
||||||
code: "string",
|
code: "string",
|
||||||
password: "926425",
|
password: "926425",
|
||||||
username: this.loginUser.id,
|
username: this.loginUser.id,
|
||||||
uuid: "string"
|
uuid: "string"
|
||||||
}
|
}).then(res => {
|
||||||
).then(res => {
|
|
||||||
localStorage.setItem("userInfo",JSON.stringify(this.loginUser))
|
localStorage.setItem("userInfo",JSON.stringify(this.loginUser))
|
||||||
this.token = res.data.data
|
this.token = res.data
|
||||||
localStorage.setItem("token", this.token)
|
localStorage.setItem("token", this.token)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -5,32 +5,39 @@ module.exports = {
|
||||||
outputDir: "dist",
|
outputDir: "dist",
|
||||||
// 开发环境显示报错位置 生产环境设置为false减少打包体积
|
// 开发环境显示报错位置 生产环境设置为false减少打包体积
|
||||||
productionSourceMap: true,
|
productionSourceMap: true,
|
||||||
|
|
||||||
// devServer: {
|
|
||||||
// host: '0.0.0.0',
|
|
||||||
// port: 80,
|
|
||||||
// open: true,
|
|
||||||
// proxy: {
|
|
||||||
// // detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
||||||
// [process.env.VUE_APP_BASE_API]: {
|
|
||||||
// target: `http://localhost:8080`,
|
|
||||||
// changeOrigin: true,
|
|
||||||
// pathRewrite: {
|
|
||||||
// ['^' + process.env.VUE_APP_BASE_API]: ''
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// disableHostCheck: true
|
|
||||||
// },
|
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 88,
|
host: '0.0.0.0',
|
||||||
disableHostCheck: true,
|
port: 80,
|
||||||
/*overlay: {
|
open: true,
|
||||||
warning: false,
|
proxy: {
|
||||||
errors: false
|
'^/api': {
|
||||||
}*/
|
target: 'http://gateway.feashow.cn',
|
||||||
|
ws: true,
|
||||||
|
changeOrigin: true,
|
||||||
|
pathRewrite: {
|
||||||
|
'^/api': ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||||
|
// api: {
|
||||||
|
// target: `http://localhost:8000`,
|
||||||
|
// changeOrigin: true,
|
||||||
|
// pathRewrite: {
|
||||||
|
// ['^api']: '/'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
disableHostCheck: true
|
||||||
},
|
},
|
||||||
|
// devServer: {
|
||||||
|
// port: 88,
|
||||||
|
// disableHostCheck: true,
|
||||||
|
// /*overlay: {
|
||||||
|
// warning: false,
|
||||||
|
// errors: false
|
||||||
|
// }*/
|
||||||
|
//
|
||||||
|
// },
|
||||||
pluginOptions: {
|
pluginOptions: {
|
||||||
"style-resources-loader": {
|
"style-resources-loader": {
|
||||||
preProcessor: "less",
|
preProcessor: "less",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue