Module Warning (from ./node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js):
error: 'resolve' is defined but never used (no-unused-vars) at src\store\actions.js:1:10:
> 1 | import { resolve } from "any-promise"
| ^
2 |
3 | export default {
4 | buyVip({ commit }, e) {
error: 'reject' is defined but never used (no-unused-vars) at src\store\actions.js:5:38:
3 | export default {
4 | buyVip({ commit }, e) {
> 5 | return new Promise((resolve, reject) => {
| ^
6 | // mock api 交互
7 | setTimeout(() => {
8 | // 修改本地state
error: 'reject' is defined but never used (no-unused-vars) at src\store\actions.js:19:38:
17 | getFreeVip({ commit, state }) {
18 | // mock api 交互
> 19 | return new Promise((resolve, reject) => {
| ^
20 | setTimeout(() => {
21 | if (state.userStatus === 0) {
22 | commit("setMemberInfo", {
3 errors found.
npm install any-promise