This commit is contained in:
Frank.R.Wu 2021-06-16 23:42:41 +08:00
parent 4532c905e6
commit b6bfcc8ca1
3 changed files with 3 additions and 3 deletions

View File

@ -160,6 +160,7 @@
</div> </div>
</div> </div>
<script> <script>
const isBaaS = true
var h = document.body.clientHeight var h = document.body.clientHeight
- $("header").css("height").replace("px", "") - $("header").css("height").replace("px", "")

View File

@ -774,7 +774,7 @@ function connectNode() {
} }
function getRequestParameters() { function getRequestParameters() {
if (location.href.indexOf("BaaSClient") !== -1) { if (isBaaS) {
let params = location.href.replace(/[^#]*(#(\/)?|\?)/, '') let params = location.href.replace(/[^#]*(#(\/)?|\?)/, '')
let url = location.href.replace(params, '') let url = location.href.replace(params, '')
while (!params) { while (!params) {

View File

@ -189,8 +189,7 @@ function initGlobal(urlParams) {
window.global = {}; window.global = {};
} }
global.result = ""; global.result = "";
if (location.href.indexOf("BaaSClient") !== -1) { if (isBaaS) {
global.isBaaS = true
primaryColor = '#08263a' primaryColor = '#08263a'
} }
if (urlParams) { if (urlParams) {