1 Star 0 Fork 0

ybl/uni_app_shop

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
main.js 572 Bytes
Copy Edit Raw Blame History
ybl authored 2021-07-01 20:43 . 1
import Vue from 'vue'
import App from './App'
// import { myRequest } from "./utils/request.js"
// 全局挂在 myRequest 到vue上
// Vue.prototype.$myRequest = myRequest
Vue.filter('formatDate',(date)=>{
const nDate = new Date(date)
const year = nDate.getFullYear().toString().padStart(2,0)
const month = nDate.getMonth().toString().padStart(2,0).toString().padStart(2,0)
const day = nDate.getDay().toString().padStart(2,0)
return `${year}-${month}-${day}`
})
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ybl1314/uni_app_shop.git
git@gitee.com:ybl1314/uni_app_shop.git
ybl1314
uni_app_shop
uni_app_shop
master

Search

0d507c66 1850385 C8b1a773 1850385