diff --git a/.eslintrc.js b/.eslintrc.js
index 2c13791..c9794cd 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -12,5 +12,12 @@ module.exports = {
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
indent: 0,
'space-before-function-paren': 0
+ },
+ // The Follow configs works with eslint-plugin-vue v7.x.x
+ globals: {
+ defineProps: 'readonly',
+ defineEmits: 'readonly',
+ defineExpose: 'readonly',
+ withDefaults: 'readonly'
}
}
diff --git a/package.json b/package.json
index 64763eb..7dca8e0 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"prepare": "husky install"
},
"dependencies": {
+ "@element-plus/icons-vue": "^2.0.6",
"axios": "^0.27.2",
"core-js": "^3.8.3",
"element-plus": "1.3.0-beta.5",
diff --git a/src/api/login.js b/src/api/login.js
new file mode 100644
index 0000000..1845ad6
--- /dev/null
+++ b/src/api/login.js
@@ -0,0 +1,9 @@
+import request from './request'
+
+export const login = (data) => {
+ return request({
+ url: '/login',
+ method: 'POST',
+ data
+ })
+}
diff --git a/src/api/request.js b/src/api/request.js
new file mode 100644
index 0000000..19982a6
--- /dev/null
+++ b/src/api/request.js
@@ -0,0 +1,11 @@
+// 导入 axios
+import axios from 'axios'
+// axios 基础配置
+const service = axios.create({
+ // 基础路径
+ baseURL: process.env.VUE_APP_BASE_API,
+ // 超时时间
+ timeout: 5000
+})
+// 导入以供外界使用
+export default service
diff --git a/src/components/SvgIcon/svgIndex.vue b/src/components/SvgIcon/svgIndex.vue
index 7c023ed..fd941bc 100644
--- a/src/components/SvgIcon/svgIndex.vue
+++ b/src/components/SvgIcon/svgIndex.vue
@@ -4,7 +4,7 @@