In the previous article, we created the project and successfully ran it.
Here to add dependencies for my project, I use yarn here.
1: Install vue-router
yarn add vue-router@next
2: Install vuex
yarn add vuex@@next
3: Install the component library Ant Design Vue
yarn add ant-design-vue@next
4: Install typescript
yarn add -D typescript
Use TypeScript
main.js is renamed to main.ts
Replace /src/main.js with /src/main.ts in index.html
...
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
5: Install axios
yarn add -D axios
6: Install qs
yarn add -D qs
7: Install sass
yarn add -D sass
Currently, only these relatively basic plug-in support are installed, and will be updated continuously in the future.
Finally update the plug-in command:
yarn global upgrade
There are good suggestions, please enter your order below.
Welcome to personal blog
https://guanchao.site
Welcome to the Mini Program: