diff --git a/electron/build.js b/electron/build.js
index d84a214c6..44ce85c02 100644
--- a/electron/build.js
+++ b/electron/build.js
@@ -98,6 +98,13 @@ function genericPublish({url, version, output}) {
// 生成配置、编译应用
function startBuild(data, publish) {
+ const systemInfo = {
+ title: data.name,
+ version: config.version,
+ origin: "./",
+ homeUrl: utils.formatUrl(data.url),
+ apiUrl: utils.formatUrl(data.url) + "api/",
+ }
// information
if (data.id === 'app') {
console.log("Name: " + data.name);
@@ -108,16 +115,9 @@ function startBuild(data, publish) {
console.log("Version: " + config.version);
console.log("Platform: " + data.platform);
console.log("Publish: " + (publish ? 'Yes' : 'No'));
+ // drawio
+ cloneDrawio(systemInfo)
}
- let systemInfo = {
- title: data.name,
- version: config.version,
- origin: "./",
- homeUrl: utils.formatUrl(data.url),
- apiUrl: utils.formatUrl(data.url) + "api/",
- }
- // drawio
- cloneDrawio(systemInfo)
// config.js
fs.writeFileSync(electronDir + "/config.js", "window.systemInfo = " + JSON.stringify(systemInfo), 'utf8');
fs.writeFileSync(nativeCachePath, utils.formatUrl(data.url));
@@ -128,7 +128,9 @@ function startBuild(data, publish) {
indexString = indexString.replace(/
(.*?)<\/title>/g, `${data.name}`);
fs.writeFileSync(indexFile, indexString, 'utf8');
if (data.id === 'app') {
- fse.copySync(electronDir, path.resolve(__dirname, "../resources/mobile/src/public"))
+ const publicDir = path.resolve(__dirname, "../resources/mobile/src/public");
+ fse.removeSync(publicDir)
+ fse.copySync(electronDir, publicDir)
return;
}
// package.json Backup
diff --git a/resources/assets/js/App.vue b/resources/assets/js/App.vue
index a6f4e5d64..a7546df3b 100755
--- a/resources/assets/js/App.vue
+++ b/resources/assets/js/App.vue
@@ -32,20 +32,13 @@ export default {
},
created() {
+ if ($A.urlParameter('token')) {
+ this.$store.state.userToken = $A.urlParameter('token');
+ }
this.electronEvents();
},
mounted() {
- let hash = window.location.hash;
- if (hash.indexOf("#") === 0) {
- hash = hash.substr(1);
- if (hash) {
- this.$nextTick(() => {
- hash = $A.removeURLParameter(hash, 'token');
- this.goForward({path: hash});
- });
- }
- }
this.sessionStorage('/', 1);
let pathname = window.location.pathname;
if (pathname && this.sessionStorage(pathname) === 0) {
diff --git a/resources/assets/js/components/Mobile/Back.vue b/resources/assets/js/components/Mobile/Back.vue
index 21e314b76..78f7d67e9 100644
--- a/resources/assets/js/components/Mobile/Back.vue
+++ b/resources/assets/js/components/Mobile/Back.vue
@@ -3,8 +3,6 @@
diff --git a/resources/assets/js/pages/manage/setting/personal.vue b/resources/assets/js/pages/manage/setting/personal.vue
index 76b0762ab..3a502a314 100644
--- a/resources/assets/js/pages/manage/setting/personal.vue
+++ b/resources/assets/js/pages/manage/setting/personal.vue
@@ -9,10 +9,10 @@
-
+
-
+