154 Star 1.1K Fork 193

GVP深圳市言信网络科技有限公司 / uView

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
App.vue 746 Bytes
Copy Edit Raw Blame History
<script>
export default {
// 此处globalData为了演示其作用,不是uView框架的一部分
globalData: {
username: '白居易'
},
onLaunch() {
// 1.1.0版本之前关于http拦截器代码,已平滑移动到/common/http.interceptor.js中
// 注意,需要在/main.js中实例化Vue之后引入如下(详见文档说明):
// import httpInterceptor from '@/common/http.interceptor.js'
// Vue.use(httpInterceptor, app)
// process.env.VUE_APP_PLATFORM 为通过js判断平台名称的方法,结果分别如下:
/**
* h5,app-plus(nvue下也为app-plus),mp-weixin,mp-alipay......
*/
},
}
</script>
<style lang="scss">
@import "uview-ui/index.scss";
@import "common/demo.scss";
</style>

Comment ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/xuqu/uView.git
git@gitee.com:xuqu/uView.git
xuqu
uView
uView
master

Search