一个vue问题,一个vantui 问题。

VUE问题

vue项目title没有生效,下面这么定义不对吗?

vue.config.js里

configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    name: name,
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  }

public/index.html里

<title><%= htmlWebpackPlugin.options.title %></title>

Vant UI的Tabbar的固定到底部的safe-area-inset-bottom 没起作用

在我的iphone 12上访问这个h5项目底部操作条还是会盖住tabbar ,请问这个可能的原因是什么呢?同时我有引入tailwindcss

<van-tabbar fixed route safe-area-inset-bottom v-model="active" @change="handleChange">
阅读 1.3k
1 个回答

问题一:

<title><%= webpackConfig.name %></title>

问题二:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题