在index.html中添加

    1. <link rel ="shortcut icon" type="image/x-icon" href="./favicon.ico">

    在vue.config.js中添加

    1. pwa: {
    2. iconPaths: {
    3. favicon32: '.favicon.ico',
    4. favicon16: './favicon.ico',
    5. appleTouchIcon: './favicon.ico',
    6. maskIcon: './favicon.ico',
    7. msTileImage: './favicon.ico'
    8. }
    9. },

    image.png