chenying 4 lat temu
rodzic
commit
83ade50f54

+ 2 - 2
src/views/main-navbar-update-password.vue

@@ -78,14 +78,14 @@
         this.$refs['dataForm'].validate((valid) => {
           if (valid) {
             this.$http({
-              url: this.$http.adornUrl('/sys/user/password'),
+              url: this.$http.adornUrl('/user-service/user/password'),
               method: 'post',
               data: this.$http.adornData({
                 'password': this.dataForm.password,
                 'newPassword': this.dataForm.newPassword
               })
             }).then(({data}) => {
-              if (data && data.code === 0) {
+              if (data && data.code === '200') {
                 this.$message({
                   message: '操作成功',
                   type: 'success',

+ 3 - 2
src/views/modules/sys/dict-add-or-update.vue

@@ -25,10 +25,10 @@
           <el-radio :label="-1">已删除</el-radio>
         </el-radio-group>
       </el-form-item>
-    </el-form>
-    <el-form-item label="备注" prop="remark">
+      <el-form-item label="备注" prop="remark">
         <el-input v-model="dataForm.remark" placeholder="备注"></el-input>
       </el-form-item>
+    </el-form>
     <span slot="footer" class="dialog-footer">
       <el-button @click="visible = false">取消</el-button>
       <el-button type="primary" @click="dataFormSubmit()">确定</el-button>
@@ -71,6 +71,7 @@
     methods: {
       init (id) {
         this.visible = true
+        this.dataForm.id = id || 0
         if (this.dataForm.id) {
           this.$http({
             url: this.$http.adornUrl(`/user-service/dict/info/${this.dataForm.id}`),

+ 1 - 1
static/config/init.js

@@ -3,7 +3,7 @@
  */
 ;(function() {
   var resList = {
-    icon: window.SITE_CONFIG.cdnUrl + '/static/img/favicon.ico',
+    icon: window.SITE_CONFIG.cdnUrl + '/static/img/logo.png',
     css: [
       window.SITE_CONFIG.cdnUrl + '/static/css/app.css',
     ],