|
@@ -22,6 +22,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { sysConfig } from "@/api/user/user.js";
|
|
|
import { currentUrlToParams } from "@/utils/common.js";
|
|
|
import { Button as vanButton, Overlay as vanOverlay } from "vant";
|
|
|
import "vant/lib/button/style";
|
|
@@ -46,7 +47,9 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.$pageParams = currentUrlToParams();
|
|
|
- this.type = this.$pageParams.pattern - 0;
|
|
|
+ sysConfig().then(res => {
|
|
|
+ this.type = res.GRAY_MODE - 0;
|
|
|
+ });
|
|
|
const sys = window.navigator.userAgent.toLowerCase();
|
|
|
this.isAndroid = /android/g.test(sys);
|
|
|
this.isWindows = /windows/g.test(sys);
|