859 B

cust

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Customize configuration

See Configuration Reference.

页面设置

  • 登录页
  • 课表页(tab)
  • 成绩页(tab)
  • 登出页(tab)

vue-cli3下 解决浏览器兼容性问题

  1. 安装babel-polyfill依赖npm i babel-polyfill --save-dev
  2. vue.config.js新增
        chainWebpack: config => {
            config.entry('main').add('babel-polyfill') // main是入口js文件
        }
    

本地缓存

  • localStorage.setItem("cherry",JSON.stringify(this.$store.state))

  • this.$store.replaceState(Object.assign(this.$store.state,JSON.parse(localStorage.getItem("cherry"))));

  • 旋转色值filter: hue-rotate(290deg);