Commit fcb0be16 by liuyong

修改代码

1 parent 8d3e85d9
const ajaxUrl = '192.168.148.129:7003';
\ No newline at end of file
......@@ -250,7 +250,7 @@ App = function(editor, container, lightbox)
}
$.ajax({
method: "post",
url: 'http://192.168.148.129:7003/ynMol/archi-list',
url: `http://${ajaxUrl}/ma-ml/archi-list`,
data: JSON.stringify({
metaModelId: urlParams['id']
}),
......@@ -3852,7 +3852,7 @@ App.prototype.showSplash = function(force)
}else {
$.ajax({
method: "post",
url: 'http://192.168.148.129:7003/ynMol/gBMMId',
url: `http://${ajaxUrl}/ma-ml/gBMMId`,
data: JSON.stringify({
metaModelId: urlParams['id']
}),
......
......@@ -275,6 +275,8 @@ mxscript(drawDevUrl + 'js/diagramly/mxFreehand.js');
mxscript(drawDevUrl + 'js/diagramly/P2PCollab.js');
mxscript(drawDevUrl + 'js/diagramly/DevTools.js');
mxscript(geBasePath + '../../../extention/js/loadDiagram.js');
mxscript(geBasePath + '../../../extention/js/url.js');
// Vsdx/vssx support
mxscript(drawDevUrl + 'js/diagramly/vsdx/VsdxExport.js');
......
......@@ -162,7 +162,7 @@ export default {
const params = {
verName: this.query_item1
}
get_yuan_mo_xing_list({}).then(res => {
get_yuan_mo_xing_list(params).then(res => {
if(res.code == 200) {
res.data.records.map(item => {
item['metaModelSvg_'] = 'data:image/svg+xml;base64,'+ item.metaModelSvg;
......
const { defineConfig } = require('@vue/cli-service')
const { defineConfig } = require('@vue/cli-service');
const ip = '192.168.148.129';
module.exports = defineConfig({
transpileDependencies: true,
//如果是hash模式, publicPath:"";如果是history, publicPath:"/"
......@@ -6,19 +7,19 @@ module.exports = defineConfig({
devServer: {
proxy: {
'/api/file': {
target: 'http://43.143.211.42:7005',
target: `http://${ip}:7005`,
changeOrigin: true,
// secure: false,
pathRewrite: { '^/api/file': '' },
},
'/api/network': {
target: 'http://192.168.148.129:7003',
target: `http://${ip}:7003`,
changeOrigin: true,
// secure: false,
pathRewrite: { '^/api/network': '' },
},
'/api': {
target: 'http://192.168.148.129:7004',
target: `http://${ip}:7004`,
changeOrigin: true,
// secure: false,
pathRewrite: { '^/api': '' },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!