wangqing 4 years ago
parent
commit
6715968a78
  1. 5
      package.json
  2. 2
      src/main.js
  3. 4
      src/utils/index.js
  4. 4
      src/views/official/index.vue

5
package.json

@ -13,12 +13,13 @@
"new": "plop" "new": "plop"
}, },
"dependencies": { "dependencies": {
"animate.css": "^4.1.1",
"axios": "^0.21.0", "axios": "^0.21.0",
"core-js": "^3.6.4", "core-js": "^3.6.4",
"crypto-js": "^4.0.0", "crypto-js": "^4.0.0",
"dayjs": "^1.9.4", "dayjs": "^1.9.4",
"echarts": "^5.0.0", "echarts": "^5.0.0",
"element-ui": "^2.14.0", "element-ui": "^2.15.2",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"js-cookie": "^2.2.1", "js-cookie": "^2.2.1",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
@ -46,7 +47,7 @@
"husky": "^4.3.0", "husky": "^4.3.0",
"lint-staged": "^10.5.1", "lint-staged": "^10.5.1",
"plop": "^2.7.4", "plop": "^2.7.4",
"sass": "^1.28.0", "sass": "~1.32.1",
"sass-loader": "^10.0.4", "sass-loader": "^10.0.4",
"sass-resources-loader": "^2.1.1", "sass-resources-loader": "^2.1.1",
"stylelint": "^13.7.2", "stylelint": "^13.7.2",

2
src/main.js

@ -7,6 +7,7 @@ import meta from 'vue-meta'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import router from './router/index' import router from './router/index'
import animated from 'animate.css'
import api from './api' import api from './api'
import store from './store/index' import store from './store/index'
import '@/assets/styles/index.scss' // global css import '@/assets/styles/index.scss' // global css
@ -34,6 +35,7 @@ Vue.prototype.msgInfo = function(msg) {
Vue.use(VueClipboard) Vue.use(VueClipboard)
Vue.use(meta) Vue.use(meta)
Vue.use(Element, {size: 'small', zIndex: 3000}) Vue.use(Element, {size: 'small', zIndex: 3000})
Vue.use(animated)
// 自动加载 svg 图标 // 自动加载 svg 图标
const req = require.context('./assets/icons', false, /\.svg$/) const req = require.context('./assets/icons', false, /\.svg$/)

4
src/utils/index.js

@ -195,9 +195,11 @@ export function getCurrentDomain() {
* @param {boolean} immediate * @param {boolean} immediate
* @return {*} * @return {*}
*/ */
export function debounce(func, wait, immediate) { export function debounce(func, wait, immediate) {
// eslint-disable-next-line no-unused-vars
let timeout, args, context, timestamp, result let timeout, args, context, timestamp, result
// eslint-disable-next-line no-unused-vars
const later = function() { const later = function() {
// 据上一次触发时间间隔 // 据上一次触发时间间隔
const last = +new Date() - timestamp const last = +new Date() - timestamp

4
src/views/official/index.vue

@ -26,10 +26,10 @@
</div> </div>
<div class="content-header"> <div class="content-header">
<div class="left"> <div class="left">
<p class="slogan"> <p class="slogan animate__animated animate__fadeInLeftBig">
填鸭待定SLOGAN 填鸭待定SLOGAN
</p> </p>
<p class="slogan-desc"> <p class="slogan-desc animate__animated animate__fadeInLeftBig">
TDuck - Have what you want, TDuck - Have what you want,
get you income. get you income.
</p> </p>

Loading…
Cancel
Save