瀏覽代碼

线上地址,解封接口修改

hjr 2 月之前
父節點
當前提交
1a2e8d1802
共有 3 個文件被更改,包括 7 次插入4 次删除
  1. 5 2
      src/views/main/user/userList/index.vue
  2. 1 1
      src/views/system/login.vue
  3. 1 1
      vite.config.js

+ 5 - 2
src/views/main/user/userList/index.vue

@@ -185,7 +185,7 @@ const dynamicFormItems = ref([
 	  type: "select",
 	  options: [
 	    { label: "正常", value: 0 },
-	    { label: "封", value: 1 },
+	    { label: "封", value: 1 },
 	  ],
 	},
 	// 其他动态的表单项配置
@@ -284,8 +284,11 @@ const confirm = async (formEl) => {
 		if (valid) {
 			// data.id ? await sysUserUpdate(data) : await sysUserRegister(data)
 			if(layer.value.title=='更改用户状态'){ // 解封
-				updateUserStatus({
+				// enableUser 、 updateUserStatus
+				enableUser({
 					userId:data.userId,
+					id:data.userId,
+					deblockingReason:data.banReason,
 					userState:0, // 解封
 				}).then(res=>{
 					layer.value.show = false;

+ 1 - 1
src/views/system/login.vue

@@ -61,7 +61,7 @@ import { sysUserLogin } from '@/api/sysUser'
 export default defineComponent({
   setup() {
 	  const captchaImg = ref('')
-	  const uuid = ref('')
+	  const uuid = ref('') 
 	  onBeforeMount(()=>{
 		captchaChange()
 	  })

+ 1 - 1
vite.config.js

@@ -32,7 +32,7 @@ export default ({ command }) => {
         '/pro-api':{
           target: 'http://47.121.202.117:81',
           changeOrigin: true,
-          rewrite: (path) => {
+          rewrite: (path) => { 
             return path.replace('/pro-api', '/')
           }
         }