MrShi
4 天以前 1c20c8231980a8d4b91688ff8641a06d3b2f68ab
pda/main.js
@@ -8,6 +8,17 @@
Vue.use(uView)
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$jump = (url) => {uni.navigateTo({url})}
Vue.prototype.$goBack = () => { uni.navigateBack() }
Vue.prototype.showToast = (str) => {
   setTimeout(() => {
      uni.showToast({
        title: str,
        icon: 'none',
        duration: 2000
      })
   },100)
}
App.mpType = 'app'
const app = new Vue({
@@ -21,6 +32,7 @@
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
   app.use(uView)
  return {
    app
  }