Преглед изворни кода

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

master
lizhuang пре 2 дана
родитељ
комит
7fa5ecb3c9
4 измењених фајлова са 23 додато и 27 уклоњено
  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 Прегледај датотеку

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

+ 19
- 23
src/layout/components/Sidebar/Logo.vue Прегледај датотеку

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


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


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

+ 1
- 1
src/views/login.vue Прегледај датотеку

}, },
loading: false, loading: false,
// 验证码开关 // 验证码开关
captchaEnabled: true,
captchaEnabled: false,
// 注册开关 // 注册开关
register: false, register: false,
redirect: undefined, redirect: undefined,

+ 2
- 3
vue.config.js Прегледај датотеку

proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [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, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Откажи
Сачувај