yujialong 2 years ago
parent 83660771a0
commit 9482f9959f
  1. 1
      src/layouts/home/index.vue
  2. 2
      src/layouts/navbar/index.vue
  3. 5
      src/pages/article/add/index.vue
  4. 4
      src/setting.js
  5. 4
      src/styles/common.scss
  6. BIN
      src/styles/font/PingFang-Regular.otf
  7. BIN
      src/styles/font/YouSheBiaoTiHei.ttf
  8. 2
      src/styles/layout/index.scss

@ -1,6 +1,5 @@
<template> <template>
<div class="main"> <div class="main">
<v-navbar class="nav"></v-navbar> <v-navbar class="nav"></v-navbar>
<div class="layout"> <div class="layout">
<v-head></v-head> <v-head></v-head>

@ -44,7 +44,7 @@
<img class="logo-icon" src="@/assets/img/logo.png" alt=""> <img class="logo-icon" src="@/assets/img/logo.png" alt="">
<ul class="col-nav"> <ul class="col-nav">
<li v-for="(item, i) in colNav" :key="i" @click="menuSelect(item.index)"> <li v-for="(item, i) in colNav" :key="i" @click="menuSelect(item.index)">
<img width="15" :src="require('@/assets/img/' + item.icon + '.png')" alt=""> <img width="16" :src="require('@/assets/img/' + item.icon + '.png')" alt="">
</li> </li>
</ul> </ul>
</div> </div>

@ -4,11 +4,11 @@
<el-form :model="form" :rules="rules" class="input-form model" label-width="140px"> <el-form :model="form" :rules="rules" class="input-form model" label-width="140px">
<el-form-item prop="title" label="标题"> <el-form-item prop="title" label="标题">
<el-input <el-input
style="width: 100%"
placeholder="请输入标题" placeholder="请输入标题"
v-model.trim="form.title" v-model.trim="form.title"
clearable clearable
maxlength="15" maxlength="15"
class="inline-input"
@change="nameChange" @change="nameChange"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -55,6 +55,7 @@
</div> </div>
<el-form-item prop="summary" label="摘要"> <el-form-item prop="summary" label="摘要">
<el-input <el-input
style="width: 100%"
type="textarea" type="textarea"
v-model.trim="form.summary" v-model.trim="form.summary"
clearable clearable
@ -204,7 +205,7 @@
<el-button type="primary" @click="submit(1)">发布</el-button> <el-button type="primary" @click="submit(1)">发布</el-button>
<el-button @click="preview">预览</el-button> <el-button @click="preview">预览</el-button>
<el-button @click="submit(0)">保存草稿</el-button> <el-button @click="submit(0)">保存草稿</el-button>
<el-button @click="$router.push('/article')">取消</el-button> <el-button @click="$router.back()">取消</el-button>
</div> </div>
</div> </div>
</template> </template>

@ -2,8 +2,7 @@
* 业务配置 * 业务配置
* */ * */
const url = location.host; const url = location.host;
const isDev = process.env.NODE_ENV === "development"; // 开发环境 const isDev = process.env.NODE_ENV === 'development' // 开发环境
const isPro = url.includes("occupationlab.com"); //是否生产
let host = `${location.origin}:10000/` let host = `${location.origin}:10000/`
if (isDev) { if (isDev) {
host = 'http://192.168.31.136:10000/' // 测试服 host = 'http://192.168.31.136:10000/' // 测试服
@ -25,7 +24,6 @@ const Setting = {
cookiesExpires: 1, // Cookies 默认保存时间,单位:天 cookiesExpires: 1, // Cookies 默认保存时间,单位:天
tokenExpires: 1296000000, // token在localStorage的时间(毫秒) tokenExpires: 1296000000, // token在localStorage的时间(毫秒)
isDev, isDev,
isPro,
/** /**
* 路由白名单 * 路由白名单
* */ * */

@ -1,8 +1,8 @@
@import "./default/index.scss"; @import "./default/index.scss";
@font-face { @font-face {
font-family: youshe; font-family: PingFang;
src: url('font/YouSheBiaoTiHei.ttf'); src: url('font/PingFang-Regular.otf');
} }
[v-cloak] { [v-cloak] {
display: none; display: none;

@ -11,7 +11,7 @@ body,
body { body {
min-width: 1280px; min-width: 1280px;
font-family: 'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif; font-family: PingFang, PingFang SC, "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif;
font-size: 14px; font-size: 14px;
background: #F0F2F5; background: #F0F2F5;
} }
Loading…
Cancel
Save