摘要:
```js // 验证码 changeImg() { this.imgurl = '/api/changeCode?' + Math.random() }, login() { this.$refs.loginForm.validate(valid => { if (valid) { this.username = this.loginForm.username this.password = t 阅读全文
摘要:
```js import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); // 初始化时用sessionStore.getItem('token'),这样子刷新页面就无需重新登录 const state = { user: window.sessionStorage.getItem('user'), token: window.ses 阅读全文
摘要:
```js import Vue from 'vue' import VueRouter from 'vue-router' import login from '../pages/login/index' import Main from '../pages' import Register from '../pages/register/register' import noFound fro 阅读全文
摘要:
```css
.star::before { content: "*"; color: #f56c6c; margin-right: 4px;
} ``` 阅读全文
摘要:
```js import Vue from 'vue' // import App from './App.vue' import router from './router' import store from './store' import axios from 'axios' //添加自定义的全局方法 import globalFunc from "./utils/globalFunc" 阅读全文
摘要:
```js // const path = require('path') module.exports = { runtimeCompiler: true, devServer: { proxy: { '/mock': { target: 'https://easy mock.com/mock/e 阅读全文