MPVue is a KPI product of Meituan’s technical team, but it’s no longer maintained for any reason. As Node versions and project dependencies are constantly updated, you may find that your original project suddenly stops running and you need an alternative to MPVue. Yes, Uni-App.

With just a few steps, you can easily migrate your MPVUE project to the Uni-App.

Go to the official website to build the project according to the steps

https://uniapp.dcloud.io/quickstart

1. Copy files from SRC directory in mpvue project to uni-app project

2. Move main.js to uniapp page

The main mpvue. Js

This is what happened when we moved here

3, run, see if the CSS with the original deviation, readjust. In addition, the API should be changed to uni-app. For example, the request API should be changed to this one

https://uniapp.dcloud.io/api/request/request

You’re done