Skip to content

Commit d30c897

Browse files
committed
添加alpha 版本号。
1 parent 30f8b6d commit d30c897

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎examples/js/common.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
return;
3232
}
3333
var version = getVersion();
34+
if (window.preRelease) {
35+
version = window.preRelease;
36+
}
3437
var versionText = version ? "" + version : " ";
3538
$('#version').html(versionText);
3639
}
@@ -93,10 +96,10 @@
9396
}
9497

9598
}
96-
if ((window.location.origin + window.location.pathname+hash) === href+hash) {
99+
if ((window.location.origin + window.location.pathname + hash) === href + hash) {
97100
return;
98101
}
99-
window.location = href+hash;
102+
window.location = href + hash;
100103
}
101104

102105
function getCommonScriptPath() {

‎examples/js/include-web.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,5 @@
169169
window.isLocal = false;
170170
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : document.location.protocol + "//" + document.location.host;
171171
window.version = "9.1.0";
172+
window.preRelease = "alpha";
172173
})();

‎examples/template/header.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<div class="navbar-header">
44
<div class="navbar-title">
55
<a class="navbar-brand" target="_blank" href="../../web/index.html">
6-
<span class="project-title vm" id="title">SuperMap iClient 9D</span>
6+
<span class="project-title vm" id="title">SuperMap iClient 9D(2019)</span>
7+
<span style="vertical-align:super; font-size:14px; color:#ffffff; margin-left:5px;" id="version">{{nav.version}}</span>
78
</a>
89
<div id="suffix-title"></div>
910
</div>

0 commit comments

Comments
 (0)