fix(移动端):pwa完善
This commit is contained in:
parent
34fae82b13
commit
35aaa3d634
@ -9,9 +9,9 @@
|
|||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"analyze": "vue-cli-service build --report",
|
"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",
|
"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",
|
"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": {
|
"dependencies": {
|
||||||
"@chenfengyuan/vue-qrcode": "^1.0.1",
|
"@chenfengyuan/vue-qrcode": "^1.0.1",
|
||||||
|
|||||||
BIN
public/img/screenshots/screenshot-mobile.png
Normal file
BIN
public/img/screenshots/screenshot-mobile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
public/img/screenshots/screenshot-wide.png
Normal file
BIN
public/img/screenshots/screenshot-wide.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"short_name": "IEP_APP",
|
"short_name": "IEP_APP",
|
||||||
"name": "IEP_APP",
|
"name": "IEP_APP",
|
||||||
"icon": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "./img/icons/ic_launcher_release_144x144.png",
|
"src": "./img/icons/ic_launcher_release_144x144.png",
|
||||||
"sizes": "144x144",
|
"sizes": "144x144",
|
||||||
@ -21,7 +21,21 @@
|
|||||||
"purpose": "any"
|
"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",
|
"display": "standalone",
|
||||||
"background_color": "#080403",
|
"background_color": "#080403",
|
||||||
"theme_color": "#080403"
|
"theme_color": "#080403"
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
import { register } from 'register-service-worker'
|
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`, {
|
register(`${process.env.BASE_URL}service-worker.js`, {
|
||||||
ready () {
|
ready () {
|
||||||
console.log(
|
console.log(
|
||||||
@ -29,4 +30,4 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
console.error('Error during service worker registration:', error)
|
console.error('Error during service worker registration:', error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
//}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user