1 Star 7 Fork 4

jingyu / uniapp_shop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 590 Bytes
一键复制 编辑 原始数据 按行查看 历史
jingyu 提交于 2021-08-09 09:47 . frist
import Vue from 'vue'
import App from './App'
import { myRequest} from 'util/api.js'
import './static/iconfont/iconfont.css';
Vue.prototype.$myRequest = myRequest //封装myRequest方法挂载到vue全局
Vue.filter('formateDate',(date)=>{ //全局过滤器
const newDate = new Date(date)
const year = newDate.getFullYear()
const month = (newDate.getMonth() + 1).toString().padStart(2,"0")
const day = newDate.getDate().toString().padStart(2,"0")
return(year+"-"+month+"-"+day)
})
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
1
https://gitee.com/jingyu7/uniapp_shop.git
git@gitee.com:jingyu7/uniapp_shop.git
jingyu7
uniapp_shop
uniapp_shop
master

搜索帮助