diff --git a/package.json b/package.json index afbd479..3e1a1ce 100755 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "lint": "vue-cli-service lint", "analyze": "vue-cli-service build --report", "deploy:qas": "vue-cli-service build --mode test --dest=./rainbond/dist/ && cd rainbond && (if exist .git rd /s /q .git) && copy web.conf dist && git init && git add . && git commit -m \"@deploy\" && git push -f http://10.10.11.66:3000/mes/nalinv-mobile-new-html.git master", - "macDeploy:qas": "vue-cli-service build --mode production --dest=./rainbond/dist/ && cd rainbond && rm -rf .git && cp web.conf dist && git init && git add . && git commit -m \"@deploy\" && git push -f http://10.10.11.66:3000/mes/nalinv-mobile-new-html.git master", + "macDeploy:qas": "NODE_ENV=production vue-cli-service build --mode production --dest=./rainbond/dist/ && cd rainbond && rm -rf .git && cp web.conf dist && git init && git add . && git commit -m \"@deploy\" && git push -f http://10.10.11.66:3000/mes/nalinv-mobile-new-html.git master", "deploy:prd": "vue-cli-service build --mode production --dest=./rainbond/dist/ && cd rainbond && (if exist .git rd /s /q .git) && copy web.conf dist && git init && git add . && git commit -m \"@deploy\" && git push -f https://gitee.com/forever_win/mom-ui-html-prd-3peak.git master", - "macDeploy:prd": "vue-cli-service build --mode production --dest=./rainbond/dist/ && cd rainbond && rm -rf .git && cp web.conf dist && git init && git add . && git commit -m \"@deploy\" && git push -f https://gitee.com/forever_win/mom-ui-html-prd-3peak.git master" + "macDeploy:prd": "vue-cli-service build --mode production --dest=./rainbond/dist/ && cd rainbond && rm -rf .git && cp web.conf dist && git init && git add . && git commit -m \"@deploy\" && git push -f http://10.10.11.66:3000/mes/nalinv-mobile-new-html-prd.git master" }, "dependencies": { "@chenfengyuan/vue-qrcode": "^1.0.1", diff --git a/public/img/screenshots/screenshot-mobile.png b/public/img/screenshots/screenshot-mobile.png new file mode 100644 index 0000000..a7bdc02 Binary files /dev/null and b/public/img/screenshots/screenshot-mobile.png differ diff --git a/public/img/screenshots/screenshot-wide.png b/public/img/screenshots/screenshot-wide.png new file mode 100644 index 0000000..b93ddda Binary files /dev/null and b/public/img/screenshots/screenshot-wide.png differ diff --git a/public/manifest.json b/public/manifest.json index 58d1b97..e018b83 100755 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,7 +1,7 @@ { "short_name": "IEP_APP", "name": "IEP_APP", - "icon": [ + "icons": [ { "src": "./img/icons/ic_launcher_release_144x144.png", "sizes": "144x144", @@ -21,7 +21,21 @@ "purpose": "any" } ], - "start_url": "index.html", + "screenshots": [ + { + "src": "./img/screenshots/screenshot-wide.png", + "sizes": "1280x800", + "type": "image/png", + "form_factor": "wide" + }, + { + "src": "./img/screenshots/screenshot-mobile.png", + "sizes": "360x640", + "type": "image/png" + } + ], + "id": "/index.html", + "start_url": "/index.html", "display": "standalone", "background_color": "#080403", "theme_color": "#080403" diff --git a/src/registerServiceWorker.js b/src/registerServiceWorker.js index 76cede0..32128ba 100755 --- a/src/registerServiceWorker.js +++ b/src/registerServiceWorker.js @@ -2,7 +2,8 @@ import { register } from 'register-service-worker' -if (process.env.NODE_ENV === 'production') { +console.log('=========process.env.NODE_ENV=======' + process.env.NODE_ENV) +//if (process.env.NODE_ENV === 'production') { register(`${process.env.BASE_URL}service-worker.js`, { ready () { console.log( @@ -29,4 +30,4 @@ if (process.env.NODE_ENV === 'production') { console.error('Error during service worker registration:', error) } }) -} +//}