From 6f1b658c27d8e0cf1cb3094e9f872d811a335fb0 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 28 Jul 2020 08:30:30 +0800 Subject: [PATCH] 1.0.0.728 Former-commit-id: 1b78c9f4c208e7e860089d9427502af6da4964b0 Former-commit-id: bd52df12dd17d5c09aa4fbf7d3c4cb12cff91257 --- projects/Version.cs | 2 +- projects/WebMVC/wwwroot/components/shared/update.html | 2 +- projects/WebMVC/wwwroot/js/config.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/Version.cs b/projects/Version.cs index 34e4dff7..aa83433e 100644 --- a/projects/Version.cs +++ b/projects/Version.cs @@ -1,4 +1,4 @@ using System.Reflection; [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0.609")] \ No newline at end of file +[assembly: AssemblyInformationalVersion("1.0.0.728")] \ No newline at end of file diff --git a/projects/WebMVC/wwwroot/components/shared/update.html b/projects/WebMVC/wwwroot/components/shared/update.html index ee133057..04706351 100644 --- a/projects/WebMVC/wwwroot/components/shared/update.html +++ b/projects/WebMVC/wwwroot/components/shared/update.html @@ -144,7 +144,7 @@ if (vm.data.errors.length === 0) { axios.post(e.target.action, vm.data.model).then(function (response) { if (response.status === 204) { - var url = base + 'index.html?area=' + vm.area + '&entity=' + vm.entity + '&model=' + vm.model; + var url = vm.base + 'index.html?area=' + vm.area + '&entity=' + vm.entity + '&model=' + vm.model; setTimeout(function () { router.push(url); }, 1000); diff --git a/projects/WebMVC/wwwroot/js/config.js b/projects/WebMVC/wwwroot/js/config.js index 153fd95d..46dc5685 100644 --- a/projects/WebMVC/wwwroot/js/config.js +++ b/projects/WebMVC/wwwroot/js/config.js @@ -1,6 +1,6 @@ var config = { debug:window.location.search.indexOf('debug') > -1, - baseUrl: 'http://localhost',//window.location.protocol + '//' + window.location.hostname, - uploadUrl:'http://localhost/IoTCenter/File/Upload', + baseUrl: window.location.protocol + '//' + window.location.hostname, + uploadUrl: window.location.protocol + '//' + window.location.hostname+'/IoTCenter/File/Upload', isMobile: /(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent) }; \ No newline at end of file