From 2366eb486870fae5d23827d2b813ad23f9c35912 Mon Sep 17 00:00:00 2001 From: sakuya <81883387@qq.com> Date: Thu, 6 May 2021 22:39:16 +0800 Subject: [PATCH] up --- package.json | 3 +++ public/config.js | 8 ++++++++ public/index.html | 1 + src/api/index.js | 6 +++--- src/config/index.js | 24 +++++++++++++----------- src/views/login.vue | 6 ++++-- vue.config.js | 1 + 7 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 public/config.js diff --git a/package.json b/package.json index e580f6c2..0690d130 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,9 @@ "env": { "node": true }, + "globals": { + "APP_CONFIG": true + }, "extends": [ "plugin:vue/vue3-essential", "eslint:recommended" diff --git a/public/config.js b/public/config.js new file mode 100644 index 00000000..6549444a --- /dev/null +++ b/public/config.js @@ -0,0 +1,8 @@ +const APP_CONFIG = { + //标题 + APP_NAME: "SCUI", + //版本号 + APP_VER: "1.0", + //接口地址 + API_URL: "" +} diff --git a/public/index.html b/public/index.html index 23004b94..ccaf1b17 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,7 @@ Welcome to SCUI Admin +