Skip to content

Commit 4817283

Browse files
committed
取消动态修改
1 parent 0457ea3 commit 4817283

File tree

5 files changed

+6
-24
lines changed

5 files changed

+6
-24
lines changed

chrome/background.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
// runtime installed
22

3-
function updating() {
4-
fetch('https://gitee.com/zpqsunny/jiaoyi/raw/master/README.md',{
5-
method: 'GET'
6-
}).then(v => {
7-
return v.text();
8-
}).then(data => {
9-
if (data.trim() === '') {
10-
return;
11-
}
12-
chrome.storage.local.set({ NEW_SERVICE_URL: data.trim() }, ()=> {
13-
console.log('Data has been stored.');
14-
});
15-
});
16-
}
17-
183
let tId = -1;
194

205
// action onClicked
@@ -25,7 +10,6 @@ chrome.action.onClicked.addListener((tab) => {
2510
console.log('tab created');
2611
tId = t.id;
2712
});
28-
updating();
2913
return;
3014
}
3115
chrome.tabs.get(tId).then(t => {

chrome/manifest.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "__MSG_appName__",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"action": {
66
"default_icon": {
77
"16": "images/torrent16.png",
@@ -26,7 +26,6 @@
2626
],
2727
"permissions": [
2828
"background",
29-
"activeTab",
30-
"storage"
29+
"activeTab"
3130
]
3231
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "torrent-dorayaki",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"private": true,
55
"scripts": {
66
"dev": "vite",

src/axios.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ import axios from 'axios'
22
import { useCounterStore } from './stores/counter'
33
import {message} from "ant-design-vue";
44
const store = useCounterStore()
5-
axios.defaults.baseURL = 'http://t.conn.ltd'
5+
axios.defaults.baseURL = 'https://ax.dorayaki.online'
66
// axios.defaults.baseURL = 'http://127.0.0.1:8000'
77

8-
chrome?.storage?.local?.get(['NEW_SERVICE_URL'], value => {
9-
axios.defaults.baseURL = value['NEW_SERVICE_URL']
10-
})
118

129
axios.interceptors.request.use(config => {
1310

src/views/Layout.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
<div style="text-align: center">
3939
<span>DHT Torrent ©2019 Created by zpq</span>
4040
<div>
41+
<img src="https://img.shields.io/github/v/release/zpqsunny/torrent-dorayaki" alt="release">
42+
&nbsp;
4143
<img src="https://img.shields.io/chrome-web-store/v/jekflgekjidcpibhnnpiimekgckgnkop" alt="#">
4244
&nbsp;
4345
<img src="https://img.shields.io/badge/dynamic/json?label=edge%20web%20store&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fgplhiomfemapanllhkkigblmhkbmjgfc" alt="#">

0 commit comments

Comments
 (0)