Bläddra i källkod

chore: 更新依赖和配置,添加 html-webpack-plugin 插件,修改 Vue 代理配置,调整侧边栏 Logo 文本,禁用验证码功能以优化登录体验。

master
lizhuang 2 dagar sedan
förälder
incheckning
7fa5ecb3c9
4 ändrade filer med 23 tillägg och 27 borttagningar
  1. 1
    0
      package.json
  2. 19
    23
      src/layout/components/Sidebar/Logo.vue
  3. 1
    1
      src/views/login.vue
  4. 2
    3
      vue.config.js

+ 1
- 0
package.json Visa fil

@@ -70,6 +70,7 @@
"connect": "3.6.6",
"eslint": "7.15.0",
"eslint-plugin-vue": "7.2.0",
"html-webpack-plugin": "^4.0.0",
"lint-staged": "10.5.3",
"runjs": "4.4.2",
"sass": "1.32.13",

+ 19
- 23
src/layout/components/Sidebar/Logo.vue Visa fil

@@ -6,7 +6,7 @@
backgroundColor:
sideTheme === 'theme-dark'
? variables.menuBackground
: variables.menuLightBackground
: variables.menuLightBackground,
}"
>
<transition name="sidebarLogoFade">
@@ -16,32 +16,29 @@
class="sidebar-logo-link"
to="/"
>
<img v-if="logo" :src="logo" class="sidebar-logo">
<h1
v-else
class="sidebar-title"
:style="{
color:
sideTheme === 'theme-dark'
? variables.logoTitleColor
: variables.logoLightTitleColor
: variables.logoLightTitleColor,
}"
>
{{ title }}
Digital
</h1>
</router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo">
<h1
class="sidebar-title"
:style="{
color:
sideTheme === 'theme-dark'
? variables.logoTitleColor
: variables.logoLightTitleColor
: variables.logoLightTitleColor,
}"
>
{{ title }}
Digital Office Automation System
</h1>
</router-link>
</transition>
@@ -49,32 +46,32 @@
</template>

<script>
import logoImg from '@/assets/logo/logo.png'
import variables from '@/assets/styles/variables.scss'
import logoImg from "@/assets/logo/logo.png";
import variables from "@/assets/styles/variables.scss";

export default {
name: 'SidebarLogo',
name: "SidebarLogo",
props: {
collapse: {
type: Boolean,
required: true
}
required: true,
},
},
data() {
return {
title: 'zhushi',
logo: logoImg
}
title: "Digital",
logo: logoImg,
};
},
computed: {
variables() {
return variables
return variables;
},
sideTheme() {
return this.$store.state.settings.sideTheme
}
}
}
return this.$store.state.settings.sideTheme;
},
},
};
</script>

<style lang="scss" scoped>
@@ -111,10 +108,9 @@ export default {
display: inline-block;
margin: 0;
color: #fff;
font-weight: 600;
font-weight: 400;
line-height: 50px;
font-size: 14px;
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
vertical-align: middle;
}
}

+ 1
- 1
src/views/login.vue Visa fil

@@ -112,7 +112,7 @@ export default {
},
loading: false,
// 验证码开关
captchaEnabled: true,
captchaEnabled: false,
// 注册开关
register: false,
redirect: undefined,

+ 2
- 3
vue.config.js Visa fil

@@ -33,9 +33,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://127.0.0.1:8080`,
// target: `http://172.17.0.1:4001`,
// target: `https://digital.sohomall.jp/prod-api`,
// target: `http://192.168.1.106:8080`,
target: `https://digital.sohomall.jp/prod-api`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''

Laddar…
Avbryt
Spara