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