飘泊客 4 months ago
parent 7417011e80
commit ed5b3626d2

@ -1,23 +1,23 @@
### ###
# @Description: # @Description:
# @Autor: 飘泊客 # @Autor: 飘泊客
# @Date: 2023-04-21 10:31:24 # @Date: 2023-04-21 10:31:24
# @LastEditors: 飘泊客 # @LastEditors: 飘泊客
# @LastEditTime: 2023-04-24 13:59:00 # @LastEditTime: 2023-04-24 13:59:00
### ###
ENV = 'development' ENV = 'development'
# 接口地址 # 接口地址
VUE_APP_BASE_API = 'https://cdp.baiyee.vip' VUE_APP_BASE_API = 'https://cdp.baiyee.vip'
#VUE_APP_BASE_API = 'https://cdp.baiyee.vip' #VUE_APP_BASE_API = 'https://cdp.baiyee.vip'
VUE_APP_BASE_APIs = 'https://cdp.baiyee.vip' VUE_APP_BASE_APIs = 'https://cdp.baiyee.vip'
VUE_APP_BASE='//8.130.96.163' VUE_APP_BASE='http://8.130.96.163'
VUE_APP_WS_API1 = 'ws://172.18.1.8:8099' VUE_APP_WS_API1 = 'ws://172.18.1.8:8099'
VUE_APP_WS_API2 = 'ws://172.18.1.8:8100' VUE_APP_WS_API2 = 'ws://172.18.1.8:8100'
# VUE_APP_BASE_API = 'http://172.18.1.8:8899' # VUE_APP_BASE_API = 'http://172.18.1.8:8899'
# VUE_APP_WS_API = 'ws://172.18.1.8:8099' # VUE_APP_WS_API = 'ws://172.18.1.8:8099'
# 是否启用 babel-plugin-dynamic-import-node插件 # 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -1,8 +1,8 @@
ENV = 'production' ENV = 'production'
# 接口地址,注意协议,如果你没有配置 ssl需要将 https 改为 http # 接口地址,注意协议,如果你没有配置 ssl需要将 https 改为 http
VUE_APP_BASE_API = 'https://cdp.baiyee.vip' VUE_APP_BASE_API = 'https://cdp.baiyee.vip'
VUE_APP_BASE_APIs = 'https://cdp.baiyee.vip' VUE_APP_BASE_APIs = 'https://cdp.baiyee.vip'
VUE_APP_BASE='https://cdp.baiyee.vip/xhs' VUE_APP_BASE='https://cdp.baiyee.vip/xhs'
# 如果接口是 http 形式, wss 需要改为 ws # 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'wss://api.auauz.net' VUE_APP_WS_API = 'wss://cdp.baiyee.vip'

@ -1,118 +1,118 @@
{ {
"name": "eladmin-web", "name": "eladmin-web",
"version": "2.5.0", "version": "2.5.0",
"description": "EL-ADMIN 前端源码", "description": "分发系统",
"author": "Zheng Jie", "author": "",
"license": "Apache-2.0", "license": "",
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build", "build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging", "build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview", "preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src", "lint": "eslint --ext .js,.vue src",
"test:unit": "jest --clearCache && vue-cli-service test:unit", "test:unit": "jest --clearCache && vue-cli-service test:unit",
"svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml", "svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml",
"new": "plop" "new": "plop"
}, },
"husky": { "husky": {
"hooks": { "hooks": {
"pre-commit": "lint-staged" "pre-commit": "lint-staged"
} }
}, },
"lint-staged": { "lint-staged": {
"src/**/*.{js,vue}": [ "src/**/*.{js,vue}": [
"eslint --fix", "eslint --fix",
"git add" "git add"
] ]
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/elunez/eladmin-web.git" "url": "https://github.com/elunez/eladmin-web.git"
}, },
"bugs": { "bugs": {
"url": "https://github.com/elunez/eladmin/issues" "url": "https://github.com/elunez/eladmin/issues"
}, },
"dependencies": { "dependencies": {
"@riophae/vue-treeselect": "0.4.0", "@riophae/vue-treeselect": "0.4.0",
"axios": "0.18.1", "axios": "0.18.1",
"better-scroll": "^1.8.1", "better-scroll": "^1.8.1",
"clipboard": "^2.0.4", "clipboard": "^2.0.4",
"codemirror": "^5.49.2", "codemirror": "^5.49.2",
"connect": "3.6.6", "connect": "3.6.6",
"echarts": "^4.2.1", "echarts": "^4.2.1",
"echarts-gl": "^1.1.1", "echarts-gl": "^1.1.1",
"echarts-wordcloud": "^1.1.3", "echarts-wordcloud": "^1.1.3",
"element-ui": "^2.13.2", "element-ui": "^2.13.2",
"file-saver": "1.3.8", "file-saver": "1.3.8",
"fuse.js": "3.4.4", "fuse.js": "3.4.4",
"js-beautify": "^1.10.2", "js-beautify": "^1.10.2",
"js-cookie": "2.2.0", "js-cookie": "2.2.0",
"jsencrypt": "^3.0.0-rc.1", "jsencrypt": "^3.0.0-rc.1",
"jszip": "3.1.5", "jszip": "3.1.5",
"mavon-editor": "^2.7.0", "mavon-editor": "^2.7.0",
"normalize.css": "7.0.0", "normalize.css": "7.0.0",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"path-to-regexp": "2.4.0", "path-to-regexp": "2.4.0",
"qrcode": "^1.5.1", "qrcode": "^1.5.1",
"qs": "^6.9.1", "qs": "^6.9.1",
"screenfull": "4.2.0", "screenfull": "4.2.0",
"sortablejs": "1.8.4", "sortablejs": "1.8.4",
"vant": "^2.12.48", "vant": "^2.12.48",
"vue": "2.6.10", "vue": "2.6.10",
"vue-aplayer": "^1.6.1", "vue-aplayer": "^1.6.1",
"vue-count-to": "1.0.13", "vue-count-to": "1.0.13",
"vue-cropper": "0.4.9", "vue-cropper": "0.4.9",
"vue-echarts": "^5.0.0-beta.0", "vue-echarts": "^5.0.0-beta.0",
"vue-highlightjs": "^1.3.3", "vue-highlightjs": "^1.3.3",
"vue-image-crop-upload": "^2.5.0", "vue-image-crop-upload": "^2.5.0",
"vue-router": "3.0.2", "vue-router": "3.0.2",
"vue-splitpane": "1.0.4", "vue-splitpane": "1.0.4",
"vuedraggable": "2.20.0", "vuedraggable": "2.20.0",
"vuex": "3.1.0", "vuex": "3.1.0",
"wangeditor": ">=3.0.0", "wangeditor": ">=3.0.0",
"xlsx": "^0.14.1" "xlsx": "^0.14.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.0.0", "@babel/core": "7.0.0",
"@babel/parser": "^7.7.4", "@babel/parser": "^7.7.4",
"@babel/register": "7.0.0", "@babel/register": "7.0.0",
"@vue/cli-plugin-babel": "3.5.3", "@vue/cli-plugin-babel": "3.5.3",
"@vue/cli-plugin-eslint": "^3.9.1", "@vue/cli-plugin-eslint": "^3.9.1",
"@vue/cli-plugin-unit-jest": "3.5.3", "@vue/cli-plugin-unit-jest": "3.5.3",
"@vue/cli-service": "3.5.3", "@vue/cli-service": "3.5.3",
"@vue/test-utils": "1.0.0-beta.29", "@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "^9.5.1", "autoprefixer": "^9.5.1",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1", "babel-eslint": "10.0.1",
"babel-jest": "23.6.0", "babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.0", "babel-plugin-dynamic-import-node": "2.3.0",
"babel-plugin-transform-remove-console": "^6.9.4", "babel-plugin-transform-remove-console": "^6.9.4",
"chalk": "2.4.2", "chalk": "2.4.2",
"chokidar": "2.1.5", "chokidar": "2.1.5",
"connect": "3.6.6", "connect": "3.6.6",
"eslint": "5.15.3", "eslint": "5.15.3",
"eslint-plugin-vue": "5.2.2", "eslint-plugin-vue": "5.2.2",
"html-webpack-plugin": "3.2.0", "html-webpack-plugin": "3.2.0",
"http-proxy-middleware": "^0.19.1", "http-proxy-middleware": "^0.19.1",
"husky": "1.3.1", "husky": "1.3.1",
"lint-staged": "8.1.5", "lint-staged": "8.1.5",
"plop": "2.3.0", "plop": "2.3.0",
"runjs": "^4.3.2", "runjs": "^4.3.2",
"sass": "^1.26.10", "sass": "^1.26.10",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"script-ext-html-webpack-plugin": "2.1.3", "script-ext-html-webpack-plugin": "2.1.3",
"script-loader": "0.7.2", "script-loader": "0.7.2",
"serve-static": "^1.13.2", "serve-static": "^1.13.2",
"svg-sprite-loader": "4.1.3", "svg-sprite-loader": "4.1.3",
"svgo": "1.2.0", "svgo": "1.2.0",
"vue-template-compiler": "2.6.10" "vue-template-compiler": "2.6.10"
}, },
"engines": { "engines": {
"node": ">=8.9", "node": ">=8.9",
"npm": ">= 3.0.0" "npm": ">= 3.0.0"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
"last 2 versions" "last 2 versions"
] ]
} }

@ -1,18 +1,18 @@
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import Config from '@/settings' import Config from '@/settings'
const TokenKey = Config.TokenKey const TokenKey = Config.TokenKey
export function getToken() { export function getToken() {
return Cookies.get(TokenKey) return Cookies.get(TokenKey)
} }
export function setToken(token, rememberMe) { export function setToken(token, rememberMe) {
if (rememberMe) { if (rememberMe) {
return Cookies.set(TokenKey, token, { expires: Config.tokenCookieExpires }) return Cookies.set(TokenKey, token, { expires: Config.tokenCookieExpires })
} else return Cookies.set(TokenKey, token) } else return Cookies.set(TokenKey, token)
} }
export function removeToken() { export function removeToken() {
return Cookies.remove(TokenKey) return Cookies.remove(TokenKey)
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save