added feeds
This commit is contained in:
@@ -15,7 +15,7 @@ async function login() {
|
||||
const jsonData = JSON.stringify(loginData)
|
||||
console.log('test')
|
||||
try {
|
||||
const response = await axios.post('login', jsonData, {
|
||||
const response = await axios.post('login/rss', jsonData, {
|
||||
headers: {
|
||||
'Content-Type': 'application/json', // Set the content type to JSON
|
||||
'crossDomain': true,
|
||||
@@ -33,7 +33,11 @@ async function login() {
|
||||
|
||||
if (response.status == 200) {
|
||||
let token = response.headers.token
|
||||
localStorage.setItem("user-token", token);
|
||||
let user_id = response.headers.user_id
|
||||
localStorage.setItem("user-token", token)
|
||||
localStorage.setItem("user-id", user_id)
|
||||
sessionStorage.setItem("user-id", user_id)
|
||||
sessionStorage.setItem("user-token", token)
|
||||
router.push({ name: 'about' })
|
||||
}
|
||||
// Handle success
|
||||
|
||||
Reference in New Issue
Block a user