clay : 修改接口

This commit is contained in:
clay 2023-05-24 15:27:02 +08:00
parent 5f50164e5e
commit 676b14e29a
4 changed files with 47 additions and 35 deletions

View File

@ -9,9 +9,17 @@ export function deleteFile(fileId) {
})
}
export function getProcessListener(type){
export function getProcessListener(type) {
return request({
url: `/flowable/process/listener/option/${type}`,
method: 'get',
})
}
export function login(param) {
return request({
url: "/auth/workflow/login",
method: "post",
data: param
});
}

View File

@ -8,9 +8,10 @@ import "element-ui/lib/theme-chalk/index.css";
// 字体图标
export function getBaseUrl(){
return "http://gateway.feashow.cn"
// return "http://192.168.101.8:8000"
// return "http://gateway.feashow.cn"
// return "http://192.168.101.7:8000"
// return "http://localhost:8000"
return "/api";
}
const service = axios.create({

View File

@ -36,8 +36,8 @@
</template>
<script>
import axios from "axios";
import UserPicker from "../components/common/UserPicker";
import {login} from '../api/common'
export default {
name: "Index",
@ -59,18 +59,14 @@ export default {
methods: {
getToken() {
localStorage.clear()
axios.post(
"http://gateway.feashow.cn/auth/workflow/login",
// "http://localhost:8000/auth/workflow/login",
{
login({
code: "string",
password: "926425",
username: this.loginUser.id,
uuid: "string"
}
).then(res => {
}).then(res => {
localStorage.setItem("userInfo",JSON.stringify(this.loginUser))
this.token = res.data.data
this.token = res.data
localStorage.setItem("token", this.token)
})
},

View File

@ -5,32 +5,39 @@ module.exports = {
outputDir: "dist",
// 开发环境显示报错位置 生产环境设置为false减少打包体积
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: {
port: 88,
disableHostCheck: true,
/*overlay: {
warning: false,
errors: false
}*/
host: '0.0.0.0',
port: 80,
open: true,
proxy: {
'^/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: {
"style-resources-loader": {
preProcessor: "less",