Nuxt框架使用+Vant


參考項目地址:https://github.com/abigting/hz-hlwzyjk-mobile.git(較簡陋)

4.路由切換時加loading

 

 

3.引入全局樣式

 

 

2.配置跨域

在nuxt.config.js中添加proxy

proxy: {
  '/ohms-yhzx': {
    target: 'http://192.168.22.158:2227',
  }
},
  modules: [
    // Doc: https://axios.nuxtjs.org/usage
    '@nuxtjs/axios',
    '@nuxtjs/proxy'
  ],

 

 

1.配置主體色

build: {
extend(config, ctx) {
config.module.rules.push({
test: /\.less$/,
use: [
{
loader: 'less-loader',
options: {
modifyVars: {
'@red': '#4892FD'
}
}
}
]
})
}
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM