Commit 7cb62d64 authored by 李鹏 's avatar 李鹏

登录接口联调

parent 7f4a5fbf
......@@ -185,7 +185,7 @@ onBeforeMount(() => {
state.checked = false;
}
});
const { loginForm, steploginFormRules, imgId, imgSrc, identifyCode, hidePassword, rememberPassword } = toRefs(state);
const { loginForm, steploginFormRules, imgSrc, hidePassword, rememberPassword } = toRefs(state);
</script>
<style lang="scss" scoped>
......
......@@ -94,7 +94,7 @@ const loginFormRef = ref(null);
const getMsgCode = () => {
loginFormRef.value.validateField("mobile", (valid) => {
if (valid) {
axios.post("/apaas/system/v5/sms/verifyCode", { phone: state.loginForm.mobile }).then(({ data }) => {
axios.post("/v1/api/user/sms/verifyCode", { phone: state.loginForm.mobile }).then(({ data }) => {
if (data.code == 200) {
countDownAction();
} else {
......@@ -123,7 +123,7 @@ const loginAction = () => {
loginFormRef.value.validate((valid) => {
if (valid) {
axios
.post(`/apaas/system/v5/user/phone/login`, {
.post(`/v1/api/user/phone/login`, {
phone: state.loginForm.mobile,
code: state.loginForm.code,
})
......
......@@ -278,9 +278,9 @@ function getViews(path) {
var menuToRouter = (menu) => {
menu.forEach((e) => {
e.name = getName(e.path);
// if (e.path.indexOf("#") != -1) {
// e.path = e.path.split("#")[1];
// }
if (e.path.indexOf("#") != -1 && e.new_window !== 1) {
e.path = e.path.split("#")[1];
}
if (e.children && e.menuType == 0) {
// 其他层级作为文件夹,只提供父级
e.component = () => import("../page/parent/parent.vue");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment