cloud-web-corejs 1.0.54-dev.355 → 1.0.54-dev.357

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.355",
4
+ "version": "1.0.54-dev.357",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
package/src/App.vue CHANGED
@@ -1,22 +1,22 @@
1
1
  <template>
2
- <div id="app" :class="{mobileApp:isMobile}">
3
- <router-view/>
2
+ <div id="app" :class="{ mobileApp: isMobile }">
3
+ <router-view />
4
4
  </div>
5
5
  </template>
6
6
 
7
7
  <script>
8
- import settting from '@/settings.js';
8
+ import settting from "@/settings.js";
9
9
 
10
10
  export default {
11
- name: 'App',
11
+ name: "App",
12
12
  data() {
13
13
  let isMobile = this.getIsMobile();
14
14
  return {
15
- isMobile: isMobile
16
- }
15
+ isMobile: isMobile,
16
+ };
17
17
  },
18
18
  created() {
19
- if (process.env.NODE_ENV !== "development") {
19
+ /* if (process.env.NODE_ENV !== "development") {
20
20
  window.addEventListener(
21
21
  'hashchange',
22
22
  event => {
@@ -37,31 +37,32 @@ export default {
37
37
  sessionStorage.setItem('toHome', '1');
38
38
  }
39
39
  });
40
- }
40
+ } */
41
41
 
42
- window.addEventListener('load', async event => {
42
+ window.addEventListener("load", async (event) => {
43
43
  // 滚动事件变为 scroll
44
44
  let title = settting.title;
45
- if (location.host.indexOf('pcp.sc.5mall.com') == 0 || location.host.indexOf('pipuat.bears.com.cn') == 0) {
46
- title = '产品创新平台PIP';
47
- } else if (location.host.indexOf('chigo.sc.5mall.com') == 0) {
48
- title = '志高营销平台';
49
- } else if (location.host.indexOf('ngerp.sc.5mall.com') == 0) {
50
- title = 'NG ERP';
45
+ if (
46
+ location.host.indexOf("pcp.sc.5mall.com") == 0 ||
47
+ location.host.indexOf("pipuat.bears.com.cn") == 0
48
+ ) {
49
+ title = "产品创新平台PIP";
50
+ } else if (location.host.indexOf("chigo.sc.5mall.com") == 0) {
51
+ title = "志高营销平台";
52
+ } else if (location.host.indexOf("ngerp.sc.5mall.com") == 0) {
53
+ title = "NG ERP";
51
54
  }
52
55
  document.title = title;
53
56
  });
54
-
55
- },
56
- mounted() {
57
57
  },
58
+ mounted() {},
58
59
  methods: {
59
60
  getIsMobile() {
60
61
  const userAgent = navigator.userAgent;
61
62
  const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i;
62
63
  return mobileRegex.test(userAgent);
63
- }
64
- }
64
+ },
65
+ },
65
66
  };
66
67
  </script>
67
68
  <style>